當系統首次在設備上啓動應用程序時,它會暫時在屏幕上顯示靜態啓動圖像。該圖像是您的應用程序的啓動圖像,它是您在Xcode項目中指定的資源。啓動圖像爲用戶提供即時反饋,表明您的應用已啓動,同時爲您的應用準備其初始用戶界面。當您的應用程序的窗口已配置並準備好顯示時,系統將爲該窗口取出啓動圖像。
當您的應用程序的用戶界面的最近快照可用時,系統將優先使用該圖像來使用應用程序的啓動圖像。當您的應用從前景轉換到背景時,系統會爲您的應用的用戶界面拍攝快照。當您的應用程序返回到前景時,它會盡可能使用該圖像而不是啓動圖像。在用戶殺了你的應用程序或你的應用程序長時間沒有運行的情況下,系統會放棄快照並再次依賴你的啓動圖像。
新的Xcode項目包含適用於您應用的啓動圖像的圖像資產條目。要添加啓動圖像,請將相應的圖像文件添加到項目的圖像資源中。在構建時,Xcode會將相應的鍵添加到應用程序的Info.plist文件中,並將這些圖像放入應用程序包中。
對於iPhone 6:
750 x 1334 (@2x) for portrait
1334 x 750 (@2x) for landscape
對於iPhone 6加:
1242 x 2208 (@3x) for portrait
2208 x 1242 (@3x) for landscape
https://developer.apple.com/library/ios/documentation/userexperience/conceptual/MobileHIG/LaunchImages.html#//apple_ref/doc/uid/TP40006556-CH22-SW1
這裏是您的Info.plist的相關位:
<key>UILaunchImages</key>
<array>
<dict>
<key>UILaunchImageMinimumOSVersion</key>
<string>8.0</string>
<key>UILaunchImageName</key>
<string>Default</string>
<key>UILaunchImageOrientation</key>
<string>Portrait</string>
<key>UILaunchImageSize</key>
<string>{320, 480}</string>
</dict>
<dict>
<key>UILaunchImageMinimumOSVersion</key>
<string>8.0</string>
<key>UILaunchImageName</key>
<string>Default</string>
<key>UILaunchImageOrientation</key>
<string>Landscape</string>
<key>UILaunchImageSize</key>
<string>{320, 480}</string>
</dict>
<dict>
<key>UILaunchImageMinimumOSVersion</key>
<string>8.0</string>
<key>UILaunchImageName</key>
<string>Default-568h</string>
<key>UILaunchImageOrientation</key>
<string>Portrait</string>
<key>UILaunchImageSize</key>
<string>{320, 568}</string>
</dict>
<dict>
<key>UILaunchImageMinimumOSVersion</key>
<string>8.0</string>
<key>UILaunchImageName</key>
<string>Default-568h</string>
<key>UILaunchImageOrientation</key>
<string>Landscape</string>
<key>UILaunchImageSize</key>
<string>{320, 568}</string>
</dict>
<dict>
<key>UILaunchImageMinimumOSVersion</key>
<string>8.0</string>
<key>UILaunchImageName</key>
<string>Default-667h</string>
<key>UILaunchImageOrientation</key>
<string>Portrait</string>
<key>UILaunchImageSize</key>
<string>{375, 667}</string>
</dict>
<dict>
<key>UILaunchImageMinimumOSVersion</key>
<string>8.0</string>
<key>UILaunchImageName</key>
<string>Default-667h</string>
<key>UILaunchImageOrientation</key>
<string>Landscape</string>
<key>UILaunchImageSize</key>
<string>{375, 667}</string>
</dict>
<dict>
<key>UILaunchImageMinimumOSVersion</key>
<string>8.0</string>
<key>UILaunchImageName</key>
<string>Default-736h</string>
<key>UILaunchImageOrientation</key>
<string>Portrait</string>
<key>UILaunchImageSize</key>
<string>{414, 736}</string>
</dict>
<dict>
<key>UILaunchImageMinimumOSVersion</key>
<string>8.0</string>
<key>UILaunchImageName</key>
<string>Default-736h</string>
<key>UILaunchImageOrientation</key>
<string>Landscape</string>
<key>UILaunchImageSize</key>
<string>{414, 736}</string>
</dict>
<dict>
<key>UILaunchImageMinimumOSVersion</key>
<string>8.0</string>
<key>UILaunchImageName</key>
<string>Default-Portrait</string>
<key>UILaunchImageOrientation</key>
<string>Portrait</string>
<key>UILaunchImageSize</key>
<string>{768, 1024}</string>
</dict>
<dict>
<key>UILaunchImageMinimumOSVersion</key>
<string>8.0</string>
<key>UILaunchImageName</key>
<string>Default-Landscape</string>
<key>UILaunchImageOrientation</key>
<string>Landscape</string>
<key>UILaunchImageSize</key>
<string>{768, 1024}</string>
</dict>
</array>
我太......我只是設置顯示Zoomed m頌歌,iphone6plus轉到iPhone6的大小......很差... – zszen 2014-12-17 10:42:54