Tag: ios6 autorotate

如何使应用程序完全正确工作在iOS 6自动旋转?

在iOS6中,不推荐使用shouldAutorotateToInterfaceOrientation。 我试图使用supportedInterfaceOrientations和shouldAutorotate使应用程序正常自动旋转,但失败。 这个ViewController我不想旋转,但它不工作。 – (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return (interfaceOrientation == UIInterfaceOrientationPortrait); } -(BOOL)shouldAutorotate { return NO; } -(NSUInteger)supportedInterfaceOrientations { return UIInterfaceOrientationMaskPortrait; } 有任何想法吗? 提前感谢您的帮助!