#pragma mark - 屏幕旋转
- (BOOL)shouldAutorotate
{
return YES;
}
- (BOOL)prefersStatusBarHidden
{
return YES; //返回NO表示要显示,返回YES将hiden
}
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation{
return UIInterfaceOrientationLandscapeLeft;// 多种旋转可以用||
}
- (NSUInteger)supportedInterfaceOrientations
{
return UIInterfaceOrientationMaskLandscapeLeft;
}
IOS屏幕旋转(备忘)
最新推荐文章于 2020-11-24 13:39:08 发布