#pragma mark - 鉴于横屏效果不好设置固定方向
- (BOOL)shouldAutorotate {
return NO;
}
- (UIInterfaceOrientationMask)supportedInterfaceOrientations {
return UIInterfaceOrientationMaskPortrait;
}
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {
return UIInterfaceOrientationPortrait;
}
IOS 8 固定方向
最新推荐文章于 2024-11-19 22:58:57 发布