我试图让某些屏幕不能在我的应用程序的某些视图上旋转,但我似乎无法做到这一点。有些视图不应该旋转,我一直在环顾四周,看到代码现在可能已被弃用,但我不需要轮换。
目前我的视图仍然使用以下代码旋转:
-(BOOL)shouldAutorotate{
return NO;
}
-(NSUInteger)supportedInterfaceOrientations{
return UIInterfaceOrientationMaskPortrait;
}
-(UIInterfaceOrientation)preferredInterfaceOrientationForPresentation{
return UIInterfaceOrientationPortrait;
}
由于