2011-04-12 57 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取向设置,并相应地作出反应。