<分区>
<分区>
Possible Duplicate:
shouldAutorotateToInterfaceOrientation is not working in iOS 6
我正在使用 xcode 4.5,我只需要在一个包含 webview 的 viewController 上启用界面方向。我怎样才能启用它。
- (BOOL)shouldAutorotateToInterfaceOrientation
似乎在 iOS6 中已弃用
最佳答案
相反,您可以使用这个 UIViewController
-(BOOL) shouldAutorotate{
return YES; //supports all
}
-(NSUInteger) supportedInterfaceOrientations{
return UIInterfaceOrientationMaskAllButUpsideDown; //supports all but upside-down
}
关于iphone - 在 UIViewController 上启用界面方向,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13619918/