Xcode 添加了 Default-568@2x.png

Xcode added Default-568@2x.png

大约一周前 xcode 向我展示了一些错误,当我点击解决问题时,xcode 添加了这张图片:

我的问题是:它有什么用?为什么我需要它? 谢谢你。

如果没有此默认图像(或 LaunchScreen 情节提要),您的应用将无法在 iPhone 秒内使用 4" 显示屏(iPhone 5、5 秒)占用所有可用屏幕 space , SE). 这是那些 iPhone 会使用的默认图像。 当然你可以(应该!)改成你设计的。

是的,你必须包括一个。

来自Apple's Interface Guidelines

To enhance the user’s experience at app launch, you must provide at least one launch image. A launch image looks very similar to the first screen your app displays. iOS displays this image instantly when the user starts your app and until the app is fully ready to use. As soon as your app is ready for use, your app displays its first screen, replacing the launch placeholder image.

运行时,导致应用程序的顶部和底部都空了很多,因为应用程序是基于320x480尺寸来运行。