UIInterfaceOrientation不旋转到正确的方向

问题描述:

我提出不同的UIViewController在另一个视图控制器这样UIInterfaceOrientation不旋转到正确的方向

[_presentingViewController presentViewController:_backgroundViewController animated:NO completion:^{ 
     //present another view controller 
    }]; 

有时提出的ViewController并在ViewControllers管理这样的呈现的ViewController变化的方向:

- (UIInterfaceOrientationMask)supportedInterfaceOrientations{ 
    return UIInterfaceOrientationMaskLandscape; 
} 

通常情况下,它可以正常工作,但每隔一段时间它就会像下图所示。然后,当我旋转手中的设备时,它会翻转至正确的布局。但起初它被错误地渲染。 我处理演示文稿的链接,并且始终在完成处理程序中解散。

奇怪的是我无法复制它。它只是在设备和模拟器上很少发生。

Wrong orientation

显然,这是某些问题 “需要全屏”。由于我激活它,它不会再发生。

enter image description here