【发布时间】:2012-09-21 20:10:08
【问题描述】:
在iOS 5中,我的应用程序使用了改变方向的方法:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
return (interfaceOrientation == UIInterfaceOrientationLandscapeRight);
}
在 iOS 6 中,我想我应该这样做,但它什么也没做!我的应用旋转不是我想要的方式。
- (BOOL) shouldAutorotate
{
return YES;
}
-(NSUInteger)supportedInterfaceOrientations
{
return UIInterfaceOrientationMaskLandscapeRight;
}
【问题讨论】:
标签: uiviewcontroller orientation ios6