【发布时间】:2014-12-13 14:05:08
【问题描述】:
我为 Deployment target >= 7.1 制作应用程序。我看到了“错误”...... 应用程序只能在横向模式下运行!
代码:
CGSize frameSize = [[UIScreen mainScreen] bounds].size;
在 iOS 7 (iPhone 4) 中,返回 CGSize (width=320, height=480),但必须返回 480x320(因为以横向模式运行应用程序)。
在 iOS 8 (iPhone 4S) 中,返回 CGSize (width=480, height=320) - 正确结果。
iOS 7 不检查横向/纵向模式返回帧,纵向模式返回大小的印象。
谢谢。
【问题讨论】:
标签: ios objective-c iphone ios7 ios8