http://steveweller.com/articles/toolbar-icons/
[Note: I have created a companion article that covers tab bar icons. It includes an updated template with new guides and a new example project.]
Creating good-looking iPhone toolbar icons is definitely a challenge. The background must be transparent and the icon antialiased. It's also white, so you'd like to work in white against a dark background and have some sort of preview that you can reference. Unless you're a Photoshop or Illustrator jockey, it's hard to know where to start.
I create pixel-perfect icons for my iPhone apps using OmniGraffle, a toolbar icon template, and a simple workflow. You can buy OmniGraffle from Omni Group and get the rest here. Note that although I'm creating a bit-mapped PNG as the final output, I'm working with vector images. This gives me the freedom to adjust and tweak as needed for the best output.
Download the template. It contains an OmniGraffle 5.1 document and an example Xcode project that uses the UIToolbarItem icon.
搜尋此網誌
2012年9月25日 星期二
關於UITabbar 圖片
屬於 Bar 的有
- Navigation bars
- Toolbars
- Tabbars
| - (id)initWithTitle:(NSString *)title image:(UIImage *)image tag:(NSInteger)tag; - (id)initWithTabBarSystemItem:(UITabBarSystemItem)systemItem tag:(NSInteger)tag; |
| typedef enum { UITabBarSystemItemMore, UITabBarSystemItemFavorites, UITabBarSystemItemFeatured, UITabBarSystemItemTopRated, UITabBarSystemItemRecents, UITabBarSystemItemContacts, UITabBarSystemItemHistory, UITabBarSystemItemBookmarks, UITabBarSystemItemSearch, UITabBarSystemItemDownloads, UITabBarSystemItemMostRecent, UITabBarSystemItemMostViewed, } UITabBarSystemItem; |
32 x 32 png 背景為透明。
How to Draw Pixel-Perfect iPhone Toolbar Icons
Generating icons for iPhone UITabBar
tabbaritem的png無法顯示
| UIImage* aImage = [UIImage imageNamed:@"favorites.png"]; [self.tabBarItem setImage:aImage]; |
| [self.tabBarItem setBadgeValue:@"100"]; |
| 原本 | 被選取時 | 沒被選取時 |
32 x 32 |
訂閱:
文章 (Atom)