2014-10-06 70 views
0

除了一個視圖(電影播放器​​),這是風景,我的應用程序的視圖被迫爲人像。 在山水景觀,我有:ios 8設備定位風景

- (BOOL)shouldAutorotate 
{ 
    return YES; 
} 

- (BOOL)shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation)interfaceOrientation 
{ 
    return UIInterfaceOrientationIsLandscape(interfaceOrientation); 
} 

- (NSUInteger)supportedInterfaceOrientations { 

    return UIInterfaceOrientationMaskLandscape; 
} 

設備處於景觀,但在肖像模式的看法依然:enter image description here

(你在模擬器上所看到的就是我可以在真實的設備看到)

一切工作正常的iOS 8.0之前

任何想法?

回答

0

嘗試使用

- (void)viewWillTransitionToSize:(CGSize)size withTransitionCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator 

爲iOS 8