简体   繁体   English

iPhone 6加上横向模拟器尺寸大小

[英]iPhone 6 plus simulator size classes in landscape

I'm trying to incorporate some of my iPad UI elements into iPhone 6 plus's landscape mode. 我正在尝试将一些iPad UI元素合并到iPhone 6 plus的横向模式中。 To do this, I am checking for a horizontalSizeClass of regular. 为此,我正在检查常规的horizontalSizeClass But whenever I run the app in the iPhone 6 plus simulator, the horizontal size class always registers as compact in landscape mode. 但是,每当我在iPhone 6 plus模拟器中运行该应用程序时,水平尺寸类始终在横向模式下注册为紧凑型 (Even the keyboard is a regular iPhone keyboard, not the special 6+ keyboard.) Is this intended behavior? (即使键盘是常规的iPhone键盘,也不是特殊的6+键盘。)这是预期的行为吗? (does this happen on the real device?) How can I test the transition to a regular horizontal size class in the simulator? (这是在真实设备上发生的吗?)如何在模拟器中测试到常规水平尺寸类的过渡?

Turned out the entire screen was scaled up, including the status bar - the app wasn't supporting the iPhone 6/6+ screen size at all. 原来整个屏幕都放大了,包括状态栏-该应用程序根本不支持iPhone 6/6 +屏幕尺寸。 I followed the instructions on this thread to add a launch storyboard, which allows the app to use the native capabilities of the 6/6+. 我按照该线程上的说明添加了一个启动情节提要,允许该应用程序使用6/6 +的本机功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM