2017-09-15 104 views
0

我希望在iPad上使用A-View仅肖像和B-View为横向(左或右)的APP。iPad上的ScreenRotation

我试过[应用:supportedInterfaceOrientationsForWindow:]在我AppDelegate.m和[shouldAutorotate:] [supportedInterfaceOrientations:] [preferredInterfaceOrientationForPresentation:]在我NavigationController,视图控制器我用它来显示我的APP (iOS 11)。

它在iPhone上运行良好,但是当我在iPad上尝试时,即使[应用程序:supportedInterfaceOrientationsForWindow:]也无法正常工作。

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

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


解决,只是不停的提醒

回答

0

iPad拥有它必须支持全旋转multipleScreen功能。 但是当您在部署信息中选中[需要全屏]时,这意味着iPad现在全屏显示,旋转功能可以正常工作。