标签:device ror style ati nta statusbar uidevice code har
判断横屏 if ([UIApplication sharedApplication].statusBarOrientation == UIDeviceOrientationLandscapeRight ||
[UIApplication sharedApplication].statusBarOrientation == UIDeviceOrientationLandscapeLeft) { //当前横屏 } else { //当前竖屏 }
判断竖屏 if ([UIApplication sharedApplication].statusBarOrientation == UIDeviceOrientationPortrait || [UIApplication sharedApplication].statusBarOrientation == UIDeviceOrientationPortraitUpsideDown) { //当前竖屏 } else { //当前横屏 }
标签:device ror style ati nta statusbar uidevice code har
原文地址:https://www.cnblogs.com/hecanlin/p/11868489.html