问题描述
当iPhone 5首次推出时,我们不得不经历为项目添加[email protected]以使应用程序使用iPhone 5的全部高度的愚蠢。2014年末我们还在做什么那个?
When iPhone 5 first came out we had to go through the silliness of adding a [email protected] to the project to get the app to use the full height of the iPhone 5. In late 2014 are we still doing that?
我们有资产目录和LaunchScreen.xib文件。我们还需要添加[email protected]文件吗?如果是这样,它现在去哪儿了?我尝试了一些不同的东西,我无法摆脱使用Xcode 6 GM创建的新应用程序中的黑条。
We have asset catalogs and the LaunchScreen.xib file. Do we still need to add the [email protected] file? If so, where does it go now? I've tried a few different things and I can't get rid of the black bars in a new app created with Xcode 6 GM.
推荐答案
正如rmaddy在评论中所述,如果你支持iOS< 8,你仍然需要这样做:
As stated by rmaddy in the comments, if you are supporting iOS < 8, you still need to do this:
通用/应用程序图标和启动图像
General / App Icons and Launch Images
启动图像源 - 选择LaunchImage作为资产目录。
Launch Image Source - select LaunchImage for asset catalog.
为Retina 4选项添加640x1136图像。
Add a 640x1136 image for the "Retina 4" option.
所以我猜猜如果你以iOS<为目标,LaunchScreen.xib是没用的。 8,除非你想在图像改变时更新它和资产目录。
So I guess the LaunchScreen.xib is useless if you target iOS < 8, unless you want to update both that and the asset catalog when the image changes.
这篇关于iPhone5(和iPhone6)上的发布屏幕上出现黑条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!