iPhone5(和iPhone6)上的发布屏幕上出现黑条 [英] Black bars on launch screen on iPhone5 (and iPhone6)

查看:128
本文介绍了iPhone5(和iPhone6)上的发布屏幕上出现黑条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当iPhone 5首次推出时,我们不得不经历为项目添加Default-568h@2x.png以使应用程序使用iPhone 5的全部高度的愚蠢。2014年末我们还在做什么那个?

When iPhone 5 first came out we had to go through the silliness of adding a Default-568h@2x.png 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文件。我们还需要添加Default-568h@2x.png文件吗?如果是这样,它现在去哪儿了?我尝试了一些不同的东西,我无法摆脱使用Xcode 6 GM创建的新应用程序中的黑条。

We have asset catalogs and the LaunchScreen.xib file. Do we still need to add the Default-568h@2x.png 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)上的发布屏幕上出现黑条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆