iPhone 6s Plus 横向尺寸紧凑 class

iPhone 6s Plus has Compact horizontal size class in landscape orientation

我有一个 iPhone 6s Plus,并且我有一个支持纵向和横向的应用程序。

当我旋转我的设备并读取 属性 mainViewController.traitCollection.horizontalSizeClass - 它总是等于 UIUserInterfaceSizeClassCompact.

很多这样的来源:https://forums.developer.apple.com/thread/17085
或者这个:http://useyourloaf.com/blog/size-classes/
告诉所有 5.5 英寸 iPhones 在横向方向上都有常规水平尺寸 class,但我的设备没有!!!

iPhone 6 Plus 模拟器iPhone 6s Plus 模拟器 上启动相同的应用程序会给出不同的结果:在这种情况下,水平尺寸 class 在横向上是常规的,就像预期的那样。

我想知道,它会是什么?有什么猜测吗?

iPhone 6 和 6 plus 设备有一个 "Zoomed" 显示模式,它使逻辑屏幕尺寸显得更小,在设置 -> 显示和亮度 -> 显示缩放

这会影响 6 加号设备在横向模式下的特征收集。这也是您在计算尺寸等时不应执行设备检查代码的原因。