2017-04-20 97 views
0

我提出不同的UIViewController在另一個視圖控制器這樣UIInterfaceOrientation不旋轉到正確的方向

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

有時提出的ViewController並在ViewControllers管理這樣的呈現的ViewController變化的方向:

- (UIInterfaceOrientationMask)supportedInterfaceOrientations{ 
    return UIInterfaceOrientationMaskLandscape; 
} 

通常情況下,它可以正常工作,但每隔一段時間它就會像下圖所示。然後,當我旋轉手中的設備時,它會翻轉至正確的佈局。但起初它被錯誤地渲染。 我處理演示文稿的鏈接,並且始終在完成處理程序中解散。

奇怪的是我無法複製它。它只是在設備和模擬器上很少發生。

Wrong orientation

回答

0

顯然,這是某些問題 「需要全屏」。由於我激活它,它不會再發生。

enter image description here