【发布时间】:2013-04-30 12:49:03
【问题描述】:
如何在 iphone 和 ipad for ios 6 中进行定位?以前的版本显示 shouldrotateinterfaceorientation 但最新版本没有显示?
我在最新版本的方向上遇到问题?请帮帮我?
【问题讨论】:
-
我的回答对您有帮助还是您需要更多帮助?
标签: ios6.1
如何在 iphone 和 ipad for ios 6 中进行定位?以前的版本显示 shouldrotateinterfaceorientation 但最新版本没有显示?
我在最新版本的方向上遇到问题?请帮帮我?
【问题讨论】:
标签: ios6.1
试试这个方法。在 iOS 6 中,我们开始使用遮罩。
- (BOOL) shouldAutorotate
{
return YES;
}
-(NSUInteger)supportedInterfaceOrientations
{
return UIInterfaceOrientationMaskLandscapeRight | UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown;
}
您可以从我在这里放置的内容中选择您想要的旋转,并删除您不想要的蒙版。祝你好运。
【讨论】: