iOS 单个页面屏幕旋转方法

#pragma mark - 屏幕旋转

- (UIInterfaceOrientationMask)supportedInterfaceOrientations {

return UIInterfaceOrientationMaskPortrait;

}

- (BOOL)shouldAutorotate {

return NO;

}

- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {

return UIInterfaceOrientationPortrait;

}

你可能感兴趣的:(iOS 单个页面屏幕旋转方法)