ios开发答疑录系列---iphone & ipad 图标大小和xcode配置
============================================================
博文原创,转载请声明出处
============================================================
ios开发需要集中图标,如下
Image Size (px)
File Name
Used For
Required Status
512x512
iTunesArtwork
Ad Hoc iTunes
Optional but recommended
57x57
Icon.png
App Store and the Home screen on iPhone/iPod touch
Required
114x114
Icon@2x.png
Home screen for iPhone 4 High Resolution
Optional but recommended
(iphone/ipad 会自动检查是否有@2x.png,有则使用么有则使用低分辨率的)
72x72
Icon-72.png
App Store and Home screen on iPad
Required
50x50
Icon-Small-50.png
Spotlight on iPad
Optional but recommended
29x29
Icon-Small.png
Settings on iPad and iPhone, and Spotlight on iPhone
Recommended if you have a Settings bundle, otherwise optional but recommended
58x58
Icon-Small@2x.png
Spotlight and Settings for iPhone 4 High Resolution
Recommended if you have a Settings bundle, otherwise optional but recommended
------------------- 注意,对于new pad,还需要144*144图标“Icon-72@x.png” -------------------
上面表格中红色文字为必须。
在xocde中,你可以直接吧icon拖入对应的icon框中,如下图,系统会自动配置相关信息,如果有提示框,点击yes
。
但这个方法有点不够优雅,将你所有的icon放入Resource的group中,在info.plist的icon files加入对应的icon名字,如下图,xode根据icon大小莱薇iphone/ipad 寻找最合适的icon。
