2012-11-22 16 views

回答

2

是的,你可以使用你的VC(不轉動)

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation 

    { 
     //return (interfaceOrientation == UIInterfaceOrientationPortrait); 
     return NO; 
    } 
// New Autorotation support for iOS 6. 
- (BOOL)shouldAutorotate NS_AVAILABLE_IOS(6_0); 
{ 
    Return NO; 
    } 

另見Apple Doc 這會有所幫助。

+0

親愛的談論iOS 6. – Buntylm

+0

@BuntyMadan,然後您可以使用 通過檢查版本 //新的自動旋轉支持。 (BOOL)shouldAutorotate NS_AVAILABLE_IOS(6_0); – HDdeveloper

+1

如果不旋轉,也檢查appDelegate。 // [self.window addSubview:navigationController.view]; [self.window setRootViewController:navigationController]; – HDdeveloper

相關問題