繁体   English   中英

UIInterfaceOrientation info.plist

[英]UIInterfaceOrientation info.plist

我正在使用Adobe Air打包它的iOS应用程序。 我试图将InterfaceOrientation设置为info.plist。

因此,在我尝试创建iOS程序包时,向我的app.xml中添加了UIInterfaceOrienation,但它给我“ application.iPhone.InfoAdditions包含无效值”错误。

这就是app.xml的样子

<iPhone>
    <InfoAdditions>
        <![CDATA[
                          ...... other values

                           <key>UIInterfaceOrientation</key>
                           <string>UIInterfaceOrientationLandscapeRight</string>

                ]]>
         </InfoAdditions>

不太确定我在这里缺少什么。 有任何想法吗?

我认为您无法通过空气包装机完成此操作。

您能得到的最接近的恕我直言是这个

假肖像

您建议的解决方案将在本机开发中使用,但尚未(使用空气打包机)使用。

我认为您将能够通过如下代码进行更改:stage.setOrientation(StageOrientation.ROTATED_LEFT);

来源: http : //polygeek.com/4301_air-mobile_playing-with-stage-orientation-in-mobile-air-apps

暂无
暂无

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

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