【问题标题】:ScreenRotation on iPadiPad 上的屏幕旋转
【发布时间】:2017-09-15 02:39:00
【问题描述】:

我希望我的 iPad 上的 APP A-View 是纵向的,B-View 是横向的(左或右)。

我在 AppDelegate.m 中尝试了 [application:supportedInterfaceOrientationsForWindow:] 和 [shouldAutorotate:][supportedInterfaceOrientations:][ preferredInterfaceOrientationForPresentation:]在我用来展示我的APP(iOS 11)的NavigationController,ViewController中。

它在 iPhone 上运行良好,但当我在 iPad 上尝试时,它甚至 [application:supportedInterfaceOrientationsForWindow:] 都无法运行。

我想知道如何在 iPad 上控制 ScreenRotation。

非常感谢。 感谢您的善意帮助。


已解决,留作提醒

【问题讨论】:

    标签: ios ipad screen-rotation


    【解决方案1】:

    iPad 具有multipleScreen 功能,它必须支持All-Rotation。 但是当你在 Deployment Info 上勾选 [Requires full screen] 时,这意味着 iPad 现在是全屏的,并且旋转功能可以正常工作。

    【讨论】:

      猜你喜欢
      • 2012-07-17
      • 1970-01-01
      • 1970-01-01
      • 2020-05-15
      • 2010-09-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-12-05
      相关资源
      最近更新 更多