启动图像在 iPhone 4 & 5 上工作,但在 iPhone 6 和 6 plus Objective-C 上不工作

Launch Image working on iPhone 4 & 5 but not on iPhone 6 and 6 plus in Objective-C

我已经通过进入 iPhone 4、5、6 和 6 plus 的资产目录来设置启动图像。我知道图像的尺寸并且我已经正确使用了它们。我已将 iPhone 6 和 6+ 的启动图像分别命名为 Default-667h@2x.png 和 Default-736h@3x.png。但是我为 iPhone 6 和 6 plus 设置的启动图像仍然无法正常工作,因为 iPhone 4 和 5 的图像出现了。请帮忙。提前致谢。

A​​pple 从 iOS 中删除了 LaunchImage 8. 现在,如果你想显示启动画面,你需要使用 LaunchScreen.xib,它现在正在创建新项目或另一个可以在中选择的 xib 或故事板"App Icons and Launch Images" 项目设置的 "General" 选项卡中的部分。

来自 developer docs:"On iOS 8, the launch screen file will be used, and on iOS 7, the launch images will be used." 启动屏幕文档 here

我通过清空启动屏幕文件前面的文本框使其正常工作。 虽然如果我在 LaunchScreen.xib 上添加图像它会起作用,但对于那些不想要 xib 的人来说,他们需要将启动屏幕文件保留为零。