ipad/iphone启动界面Default.png
參考http://blog.csdn.net/complex_ok/article/details/6061188和http://www.cocoachina.com/bbs/read.php?tid-17132.html
iOS設(shè)備現(xiàn)在有三種不同的分辨率:
iPhone 320x480,?
iPhone 4 640x960,?
iphone 5 640* 1136
iPad 768x1024。
以前程序的啟動(dòng)畫(huà)面(圖片)只要準(zhǔn)備一個(gè)Default.png就可以了,但是現(xiàn)在變得復(fù)雜多了。
?
如果一個(gè)程序,既支持iPhone又支持iPad,那么它需要包含下面幾個(gè)圖片:
Default-Portrait.png?iPad專(zhuān)用豎向啟動(dòng)畫(huà)面 768x1024或者768x1004
Default-Landscape.png?iPad專(zhuān)用橫向啟動(dòng)畫(huà)面 1024x768或者1024x748
Default-PortraitUpsideDown.png?iPad專(zhuān)用豎向啟動(dòng)畫(huà)面(Home按鈕在屏幕上面),可省略 768x1024或者768x1004
Default-LandscapeLeft.png?iPad專(zhuān)用橫向啟動(dòng)畫(huà)面,可省略 1024x768或者1024x748
Default-LandscapeRight.png?iPad專(zhuān)用橫向啟動(dòng)畫(huà)面,可省略 1024x768或者1024x748
Default.png?iPhone默認(rèn)啟動(dòng)圖片,320x480或者320x480
Default@2x.png?iPhone4啟動(dòng)圖片640x960或者640x920
Default-568h@2x.png iphone5 啟動(dòng)圖片 640*1136
為了,指定特定的圖片為啟動(dòng)畫(huà)面,還可以在Info.plist中添加UILaunchImageFile,解釋如下所示:
UILaunchImageFile (String - iPhone OS) specifies the name of the launch image file for the application. If this key is not specified, the system assumes a name of Default.png. This key is typically used by universal applications when different sets of launch images are needed for iPad versus iPhone or iPod touch devices.
If you include this key in your Info.plist file, any launch images you include in your application’s bundle should be based on the string. For example, suppose you want to include portrait and landscape launch images for iPad using the base name MyiPadImage.png. You would include the UILaunchImageFile~ipad key in your Info.plist file and set its value to MyiPadImage.png. You would then include a MyiPadImage-Portrait.png file and a MyiPadImage-Landscape.png file in your bundle to specify the corresponding launch images.
總結(jié)
以上是生活随笔為你收集整理的ipad/iphone启动界面Default.png的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: iOS中代码支持多国语言切换的实现(Xc
- 下一篇: iOS CoreBluetooth 教程