我正在为iPhone 6 Plus和iPhone 6s应用程序构建一个故事板。但是,在iPhone 6 Plus上运行应用程序时,屏幕被切割了,而在6s Plus上一切正常。这是因为屏幕尺寸不同吗?此外,有没有办法找出用户是使用iPhone 6s还是6 Plus?
我正在为iPhone 6 Plus和iPhone 6s应用程序构建一个故事板。但是,在iPhone 6 Plus上运行应用程序时,屏幕被切割了,而在6s Plus上一切正常。这是因为屏幕尺寸不同吗?此外,有没有办法找出用户是使用iPhone 6s还是6 Plus?
https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/AutolayoutPG/
使用以下代码调试您的屏幕:
po [[UIWindow keyWindow] _autolayoutTrace]
检查用户是否正在使用 iPhone 6 或 6 Plus