【问题标题】:ios 9 launch screen is getting launched in portrait modeios 9 启动屏幕以纵向模式启动
【发布时间】:2015-10-07 11:08:30
【问题描述】:

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

【问题讨论】:

标签: ios ios9 device-orientation


【解决方案1】:

我有同样的问题,我终于解决了。

首先,从 info.plist 中删除键“支持的界面方向”。

然后在 info.plist 中添加键“初始界面方向”。将键值设置为“横向(右主页按钮)”。

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

-(NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window{
        return UIInterfaceOrientationMaskAll;
            }

【讨论】:

    【解决方案2】:

    我猜,那是因为您没有为横向提供合适的启动图像。这可能会有所帮助:https://stackoverflow.com/a/32642194/2799410

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-11-15
      • 2018-03-18
      • 1970-01-01
      • 1970-01-01
      • 2020-07-22
      相关资源
      最近更新 更多