Xcode6 ios7.1 不能全屏显示

在Xcode6 中创建的app,在ios7.1的iphone5设备和iphone模拟器中不能显示全屏,用 [UIScreen mainScreen].bounds.size.height得到的值竟然是480!

从stackoverflow中找到的答案:

原文地址 http://stackoverflow.com/questions/25817562/black-bars-appear-in-app-when-targeting-ios7-1-or-7-0-in-xcode6

原有就是Xcode的一个bug(但是迟迟没有呗修复,我觉得时苹果想让大家升级到ios8的原因吧),只有修改LaunchImages才行,步骤:

1. Targets --> yourApp --> General -->App icons and launch images --> launch Images Source ;

2. 点击 Use Asset Catalog, 会弹出 Migrate launch images to an asset catalog 的提示,选择默认的 Images 选项,点 Migrate.

做完以上步骤,当当当,Run,一切ok,反正我的是这样解决的。

---------------Update-------------

解决了ios7.1的问题,随之而来的时新问题:iPhone6和plus的屏幕一直是iphone5的screen height.

原因是没有对应的Launch Image, 需要新建LaunchImage set,然后添加。

原文地址:https://www.cnblogs.com/1oo1/p/4011671.html