在Xcode6中定位iOS7.1或7.0时,应用程序中会出现黑条 [英] Black bars appear in app when targeting iOS7.1 or 7.0 in Xcode6

查看:105
本文介绍了在Xcode6中定位iOS7.1或7.0时,应用程序中会出现黑条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

重现步骤:


  1. 使用Xcode6创建新项目(单视图模板,仅限iPhone,Objective-C)

  2. 导航到项目设置并将部署目标从8.0更改为7.1

  3. 在安装了7.1或iPhone5 / s 7.1的iPhone5 / S上运行应用程序模拟器(您可能需要下载iOS7.1模拟器)

  4. 应用程序的顶部和底部出现黑条。

  1. Create a new project using Xcode6 (single view template, iPhone only, Objective-C)
  2. Navigate to project settings and change the deployment target from 8.0 to 7.1
  3. Run the application on a iPhone5/S with 7.1 installed or in the iPhone5/s 7.1 simulator (You may have to download the iOS7.1 simulators)
  4. The app appears with black bars on the top and the bottom.

如果您在iPhone5 / S 8.0模拟器上运行应用程序,屏幕将按预期显示,全部为白色。

If you run the application on the iPhone5/S 8.0 simulator, the screen will appear as expected, all white.

为什么会发生这种情况?是否有修复或解决方法?

Why is this happening? Is there a fix or workaround?

推荐答案

我能够手动解决问题,好像是Xcode的错误现在,我将提交雷达报告。

I was able to resolve the issue manually, seems like it is a bug with Xcode for now and I will file a radar report.

要解决此问题,请按照以下步骤操作:

To resolve the issue, follow the below steps:


  1. 导航至项目设置

  2. 在应用程序图标和启动图像下单击使用资产目录

  3. 选择迁移 在出现的弹出窗口中。

这应解决问题。

这篇关于在Xcode6中定位iOS7.1或7.0时,应用程序中会出现黑条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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