一 : Xcode 5资源的选择
code5新建的工程中已经没有自带纯黑的Default.png图片做为启动画面了。所以,如果单纯的加入Default.png图片是没用的,你会发现启动界面还是黑的。因为xcode5统一采用Images.xcassets来管理图片。你只需要找到Images.xcassets中的LaunchImage,在这里加入对应的启动画面即可。
如果你不想用Images.xcassets。用旧方法,直接添加Default命名的图片,但是要做一些修改。
选中工程 Targets->General->Launch Images
在source中选择 Don’t Use Asset Catalog即可。
二:启动画面的像素和机型的关系
iPhone 1(指第一代iPhone),iPhone 3G,iPhone 3GS ,iPod Touch 1,iPod Touch 2,iPod Touch 3
分辨率为320x480(宽x高 3:2),欢迎图片命名为Default.png;
iPhone 4,iPhone 4S ,iPod Touch 4
分辨率为640x960(16:9),欢迎图片命名为Default@2x.png;
iPhone5 分辨率为 640x1136,欢迎图片命名为Default-568h@2x.png;
iPad 1,iPad2,iPad mini 分辨率为768x1024 欢迎图片命名为Default~ipad.png,
New iPad(iPad 3),iPad 4 分辨率为1536x2048 欢迎图片命名为Default~ipad@2x.png
三:APP相关icons
Device/Screen | File Name (PNG) | Icon Size (pixels) | iPhone and iPod | Application Icon for iPhone (retina display) | Icon@2x.png | 114 x 114 | Application Icon icon for iPhone | Icon.png | 57 x 57 | Settings/Spotlight icon for iPhone (retina display) | Icon-Small@2x.png | 58 x 58 | Settings/Spotlight icon for iPhone | Icon-Small.png | 29 x 29 | Launch image Portrait (retina display) | Default@2x.png | 640 x 960 | Launch image Portrait | Default.png | 320 x 480 | iPad | Application Icon for the new iPad (retina display) | Icon-72@2x.png | 144 x 144 | Application Icon for the iPad | Icon-72.png | 72 x 72 | Settings/Spotlight icon for iPad | Icon-Small-50@2x.png | 100 x 100 | Settings/Spotlight icon for iPad | Icon-Small-50.png | 50 x 50 | Launch image Portrait (retina display) | Default-Portrait@2x.png | 1536 x 2008 | Launch image Portrait | Default-Portrait.png | 768 x 1004 | Launch image Landscape (retina display) | Default-Landscape@2x.png | 2048 x 1496 | Launch image Landscape | Default-Landscape.png | 1024 x 748 | iTunes App Store | App icon for the App Store (retina display) | iTunesArtwork@2x.png | 1024 x 1024 | App icon for the App Store | iTunesArtwork.png | 512 x 512 | |