如何从xcode 6.1的旋转中禁用某些视图

时间:2014-11-05 15:07:31

标签: objective-c iphone xcode ipad rotation

我试图让某些屏幕不能在我的应用程序的某些视图上旋转,但我似乎无法做到这一点。有些视图不应该旋转,我一直在环顾四周,看到代码现在可能已被弃用,但我不需要轮换。

目前我的视图仍然使用以下代码旋转:

-(BOOL)shouldAutorotate{
return  NO;
}

-(NSUInteger)supportedInterfaceOrientations{
return UIInterfaceOrientationMaskPortrait;
}

-(UIInterfaceOrientation)preferredInterfaceOrientationForPresentation{
return UIInterfaceOrientationPortrait;
}

由于

0 个答案:

没有答案