ipad default-landscape不显示 [英] ipad default-landscape not displaying

查看:140
本文介绍了ipad default-landscape不显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我添加了两张图片。 Default-Portrait.png和Default-Landscape.png。但每当我启动我的应用程序时,只会显示纵向默认图像,无论方向如何。

I have added both images. Default-Portrait.png and Default-Landscape.png. But whenever I start my app, only the portrait default image is displayed irrespective of the orientation.

为什么会发生这种情况?

Why is this happening?

推荐答案

我遇到了同样的问题并通过将以下内容添加到Info.plist文件(来自Xcode)来解决它:

I had the same problem and solved it by adding the following to the Info.plist file (from Xcode):

<key>UISupportedInterfaceOrientations</key>
<array>
    <string>UIInterfaceOrientationPortrait</string>
    <string>UIInterfaceOrientationPortraitUpsideDown</string>
    <string>UIInterfaceOrientationLandscapeLeft</string>
    <string>UIInterfaceOrientationLandscapeRight</string>
</array>

这篇关于ipad default-landscape不显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆