jjzjj

splachview

全部标签

ios - UIInterfaceOrientation 总是在 AppDelegate iPad 中返回 Portrait?

我想在iPad应用程序中显示启动画面。在此之前,我想获取当前设备方向的横向或纵向模式。我用过,UIInterfaceOrientationorientation=[[UIApplicationsharedApplication]statusBarOrientation];if(orientation==UIInterfaceOrientationLandscapeRight||orientation==UIInterfaceOrientationLandscapeLeft){splachview=[[UIImageViewalloc]initWithFrame:CGRectMake(0