简体   繁体   English

IOS 启动屏幕 storyboard 以不同的方向显示

[英]IOS Launch screen storyboard shows up in different orientation

I have an IOS app built with XCODE 11 which is landscape only(right+left).We are trying to move from Legacy launch images to Story board Launch screen.我有一个 IOS 应用程序,该应用程序使用 XCODE 11 构建,仅横向(右+左)。我们正在尝试从旧版启动图像移动到故事板启动屏幕。

The issue seems to be that the new launch screen appears as expected in landscape mode but when the device is in portrait orientation, the launch screen also appears in portrait, which looks weird because the image is meant to be in landscape to match the app orientation.问题似乎是新的启动屏幕在横向模式下按预期显示,但是当设备处于纵向时,启动屏幕也以纵向显示,这看起来很奇怪,因为图像是横向以匹配应用程序方向.

Note: The app launches in landscape after the launch screen irrespective of how the device is held.注意:无论设备如何握持,应用程序都会在启动屏幕后横向启动。

Is there a way to lock the launch screen orientation to match the app (Landscape left+right)?有没有办法锁定启动屏幕方向以匹配应用程序(横向左+右)?

Been stuck on this issue for a while, appreciate any inputs:)在这个问题上停留了一段时间,感谢任何输入:)

Have you tried set Supported interface orientations landscape in your info.plist only?您是否尝试过仅在 info.plist 中设置支持的界面方向景观?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM