ios 9启动屏幕正在以纵向模式启动

Jit*_*til 5 device-orientation ios ios9

我正在开发支持横向和纵向两种模式的应用程序,我的启动屏幕在ios 9之前已经横向定位它没问题但是ios 9启动屏幕正在以纵向模式启动

小智 5

我有同样的问题,最后我解决了.

首先,从info.plist中删除" 支持的接口方向 " 键.

然后将关键的" 初始界面方向 "添加到info.plist.将键值设置为" 横向(右侧主页按钮) ".

最后,添加到您的appDelegate.mm.

-(NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window{
        return UIInterfaceOrientationMaskAll;
            }
Run Code Online (Sandbox Code Playgroud)


Art*_*yan 1

我想,那是因为您没有提供适合横向的启动图像。这可能会有所帮助:/sf/answers/2284953611/