0

我的應用只使用風景。我通過.plist的支持的界面方向來修復它。如何修復viewcontroller的旋轉?

但是,我需要使用UIImagePickerController,它只支持縱向模式。如何將我的應用程序的旋轉旋轉到特定視圖控制器中的肖像?

任何提示將非常有幫助!泰!

回答

0

ColinE,你的意思是我應該設置如下?

所有其他viewControllers

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation 
{ 
    return (interfaceOrientation == UIInterfaceOrientationLandscapeRight || UIInterfaceOrientationLandscapeLeft); 
} 

,並設置portarit頁面

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation 
{ 
    return (interfaceOrientation == UIInterfaceOrientationPortrait); 
} 
相關問題