是否可以为当前屏幕启用/禁用旋转参数,或者此属性适用于所有应用程序?
最佳答案
当然:
- (BOOL)shouldAutorotate
{
return YES;
}
- (NSUInteger)supportedInterfaceOrientations
{
//Choose your available orientation, you can also support more tipe using the symbol |
//e.g. return (UIInterfaceOrientationMaskLandscapeLeft | UIInterfaceOrientationMaskLandscapeRight)
return (UIInterfaceOrientationMaskPortrait);
}
关于ios - 禁用当前屏幕的旋转?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/23468758/