2011-04-12 60 views

回答

0

是的,它的確如此。但是你需要支持這個方向。

感謝,

0

在你UIViewController要支持多種定位模式。

實現以下功能來指示您要支持(兩種)橫向模式和僅正常縱向模式。 (最常見的設置)

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { 
    switch (interfaceOrientation) { 
     case UIInterfaceOrientationLandscapeLeft: 
     case UIInterfaceOrientationLandscapeRight: 
     case UIInterfaceOrientationPortrait: { 
      return YES; 
     } break; 
     case UIInterfaceOrientationPortraitUpsideDown: 
     default: { 
      return NO; 
     } break; 
    } 
} 

UINavigationController意願緊隨當前UIViewController取向設置,並相應地作出反應。