在 Xcode6 中以 iOS7.1 或 7.0 为目标时,应用程序中出现黑条 [英] Black bars appear in app when targeting iOS7.1 or 7.0 in Xcode6
本文介绍了在 Xcode6 中以 iOS7.1 或 7.0 为目标时,应用程序中出现黑条的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
重现步骤:
- 使用 Xcode6 创建一个新项目(单视图模板,仅限 iPhone,Objective-C)
- 导航到项目设置并将部署目标从 8.0 更改为 7.1
- 在安装了 7.1 的 iPhone5/S 或 iPhone5/s 7.1 模拟器中运行该应用程序(您可能需要下载 iOS7.1 模拟器)
- 应用在顶部和底部显示为黑条.
如果您在 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:
- 导航到项目设置
- 在应用图标和启动图像"下,点击使用资产目录"
- 在出现的弹出窗口中选择迁移".
这应该可以解决问题.
这篇关于在 Xcode6 中以 iOS7.1 或 7.0 为目标时,应用程序中出现黑条的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文