[英]iOS - 3.5“ layout instead of 4” layout on device - works fine on simulator
I have XCode 6 project built with target OS as iOS 8.1 (I don't see earlier target in XCode). 我有使用目标操作系统构建的XCode 6项目作为iOS 8.1(我没有看到XCode中的早期目标)。
All my view controllers are designed for iPhone 4 inch size. 我的所有视图控制器都是针对iPhone 4英寸尺寸设计的。 I see correct size when I launch my app on simulator (iOS 8).
当我在模拟器(iOS 8)上启动我的应用程序时,我看到了正确的大小。
However I get iPhone 3.5 inch layout on my iPhone 5C (4") - running iOS 7.1.1 - no matter what changes I make to storyboard. I tried changing storyboard settings like IB version to iOS 7.1 and later and so on, but to no avail. 然而,我在iPhone 5C(4“)上运行iPhone 3.5英寸布局 - 运行iOS 7.1.1 - 无论我对故事板做了什么改变。我尝试将故事板设置如IB版改为iOS 7.1及更高版本,依此类推,但是徒劳无功。
The app runs totally fine, except that the top & bottom spaces appear black on my device - total height = 480 instead of 568. 应用程序运行完全正常,但我的设备上的顶部和底部空格显示为黑色 - 总高度= 480而不是568。
What can be the reason? 可能是什么原因?
The solution - as suggested by a kindred spirit on Apple forum: 解决方案 - 正如Apple论坛上的志趣精神所表明的那样:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.