每款App都要有自己的icon,和名称。需要的话还需要设置启动图。
今天我们就来说一下如何设置这些。本篇博客暂不讨论关于尺寸的问题。
icon:
icon的设置还是很简单的
根据上图的箭头和红框标记所示,
首先在工程中选中“images”,然后选择“AppIcon”,把预先准备好的各个尺寸的icon拖到相应的框中。
Image Size (px) |
File Name |
Used For |
App Store |
Ad Hoc |
---|---|---|---|---|
512x512 |
iTunesArtwork |
App list in iTunes |
Do not include |
Optional but recommended |
1024x1024 |
iTunesArtwork@2x |
App list in iTunes for devices with retina display |
Do not include |
Optional but recommended |
120x120 |
Icon-60@2x.png |
Home screen on iPhone/iPod Touch with retina display |
Required |
Required |
76x76 |
Icon-76.png |
Home screen on iPad |
Required |
Required |
152x152 |
Icon-76@2x.png |
Home screen on iPad with retina display |
Optional but recommended |
Optional but recommended |
40x40 |
Icon-Small-40.png |
Spotlight |
Optional but recommended |
Optional but recommended |
80x80 |
Icon-Small-40@2x.png |
Spotlight on devices with retina display |
Optional but recommended |
Optional but recommended |
29x29 |
Icon-Small.png |
Settings |
Recommended if you have a Settings bundle, optional otherwise |
Recommended if you have a Settings bundle, optional otherwise |
58x58 |
Icon-Small@2x.png |
Settings on devices with retina display |
Recommended if you have a Settings bundle, optional otherwise |
Recommended if you have a Settings bundle, optional otherwise |
Image Size (px) |
File Name |
Used For |
App Store |
Ad Hoc |
---|---|---|---|---|
57x57 |
Icon.png |
Home screen on iPhone/iPod touch (iOS 6.1 and earlier) |
Required |
Required |
114x114 |
Icon@2x.png |
Home screen on iPhone/iPod Touch with retina display (iOS 6.1 and earlier) |
Optional but recommended |
Optional but recommended |
72x72 |
Icon-72.png |
Home screen on iPad (iOS 6.1 and earlier) |
Required |
Required |
144x144 |
Icon-72@2x.png |
Home screen on iPad with retina display (iOS 6.1 and earlier) |
Optional but recommended |
Optional but recommended |
29x29 |
Icon-Small.png |
Spotlight on iPhone/iPod Touch (iOS 6.1 and earlier) and Settings |
Recommended if you have a Settings bundle, otherwise optional but recommended |
Recommended if you have a Settings bundle, otherwise optional but recommended |
58x58 |
Icon-Small@2x.png |
Spotlight on iPhone/iPod Touch with retina display (iOS 6.1 and earlier) and Settings on devices with retina display |
Recommended if you have a Settings bundle, otherwise optional but recommended |
Recommended if you have a Settings bundle, otherwise optional but recommended |
50x50 |
Icon-Small-50.png |
Spotlight on iPad (iOS 6.1 and earlier) |
Optional but recommended |
Optional but recommended |
100x100 |
Icon-Small-50@2x.png |
Spotlight on iPad with retina display (iOS 6.1 and earlier) |
Optional but recommended |
Optional but recommended |
App名称:
如图所示
选择你的工程,选中“Info”,再点击“Bundle Display Name”,在后面填上我们需要的App名称即可
启动图:
这个稍微麻烦点,下面要仔细看了
第一步
首先仍然选择“images”,可能在“4”这里找不到“LaunchImage”,这时在“2”点击加号,选择“New Launch Image”,即可。
如果已经有了“LaunchImage”,把对应的启动图拖进来就可以了。
Default的尺寸:
命名规则:
iphone4 Default.png(640x960)
iphone4s Default@2x.png(640x960)
iphone5 Default-568h@2x.png(640x1136)
iphone6 Default-667@2x.png(750x1136)
iphone6p Default-736@3x.png(1242x2208)
iPad Mini/iPad Default~ipad.png(768x1024)
Retina iPad Default~ipad@2x.png(1536x2048)
第二步
选择“1”的工程名称,“2”的“General”,“3”中“Launch Image Sources”选择对应的启动图的名称,“Launch Screen File”什么都不用选即可。
这时启动图就设定好了。当然这只是最基本的启动图设置方法,也可以自定义启动图,这里就暂时不说了。
看下效果图