浅谈iPhone和iPad开发中的图标设置
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
图标大小问题 我们的辛辛苦苦做出来的应用程序在iPhone上的表示仅仅是一个图标,对这个图标不可以不谨慎对待,不能因为大小不对头这些小问题而失真啊什么的。 那么,你知道图标的大小和格式吗? 本文适用于iPhone,iPod Touch,iPad等各种iOS设备。
其中第一个,也就是iTunesArtwork,必须是png格式的,但不许有后缀名。 专为iPad的应用程序
ItunesArtwork同上。 iPhone、iPad通用的应用程序
Info.plist文件 下面你也知道要怎么样了吧——对了,设置plist文件。首先,将所有的图标文件起好名字,添加到工程的Resources中去。 在.plist中添加一个Icon file字段 再添加Icon files文件字段,为Icon files添加子字段,就是所需的图标文件。如图所示。 Ps:如果你只提供一些必须的文件,剩下的文件iPhone会为你生成的。 Update:现在不提供iPhone4的必须图标Icon@2x.png,将通不过App Store的审核,所以,现在Icon@2x.png也是必须的了。 齐活。
|
Description | Size for high-resolution iPhone and iPod touch (in pixels) | Size for iPhone and iPod touch (in pixels) | Size for high-resolution iPad (in pixels) | Size for iPad (in pixels) | Guidelines |
---|---|---|---|---|---|
Application icon (required for all apps) | 114 x 114 | 57 x 57 | 144 x 144 | 72 x 72 | |
App icon for the App Store (requiredfor all apps) | 1024 x 1024 | 1024 x 1024 | 1024 x 1024 | 1024 x 1024 | |
Launch image (required for all apps) | 640 x 960 | 320 x 480 | 1536 x 2008 (portrait) 2048 x 1496 (landscape) | 768 x 1004 (portrait) 1024 x 748 (landscape) | |
Small icon for Spotlight search results and Settings (recommended) | 58 x 58 | 29 x 29 | 100 x 100 (Spotlight search results) 58 x 58 (Settings) | 50 x 50 (Spotlight search results) 29 x 29 (Settings) | |
Document icon (if necessary for custom document types) | 44 x 58 | 22 x 29 | 128 x 128 640 x 640 | 64 x 64 320 x 320 | |
Web clip icon (recommended for web apps and websites) | 114 x 114 | 57 x 57 | 144 x 144 | 72 x 72 | |
Toolbar and navigation bar icon (optional) | Approximately 40 x 40 | Approximately 20 x 20 | Approximately 40 x 40 | Approximately 20 x 20 | |
Tab bar icon (optional) | Approximately 60 x 60 | Approximately 30 x 30 | Approximately 60 x 60 | Approximately 30 x 30 | |
Default Newsstand cover icon for the App Store (required for Newsstand apps) | 1024 pixels (minimum) on the longest edge | 1024 pixels (minimum) on the longest edge | 1024 pixels (minimum) on the longest edge | 1024 pixels (minimum) on the longest edge |