2013-05-08 61 views
0

我正在搜索整個網絡的天數,但無法找到答案。iOS 6:無法在單個視圖中強制縱向模式和橫向模式

問題是:我不能強制我的應用程序只提供縱向模式下的所有UIViewControllers,除了一個UIViewController,它應該能夠在4種模式中的任何一種模式下工作。

那是我的選擇:

  • 的iOS 6
  • 的UINavigationController
  • 的UITabBarController
  • 故事板
  • 所有模式的項目(也Info.plist中)
啓用我已經試過
- (BOOL)shouldAutorotate { 
    return YES; 
} 

- (NSUInteger)supportedInterfaceOrientations { 
    return UIInterfaceOrientationMaskPortrait; 
} 

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

但它並不甚至似乎工作..

任何想法?

回答

相關問題