Ios 如何使我的mobile AIR应用程序保持在横向模式?

Ios 如何使我的mobile AIR应用程序保持在横向模式?,ios,apache-flex,mobile,air,adobe,Ios,Apache Flex,Mobile,Air,Adobe,我似乎找不到任何办法迫使它一直处于横向模式。当我转到MyApp-app.xml并将标记编辑为景观时,只有主视图是景观。如果导航到第二个视图,它将返回到纵向视图。有什么帮助吗?设备可能是一个巨大的因素。您在什么设备上遇到问题 也就是说,除了将aspectRatio设置为横向外,我还将尝试将autoOrients设置为false: <!-- The initial aspect ratio of the app when launched (either "portrait" or "

我似乎找不到任何办法迫使它一直处于横向模式。当我转到MyApp-app.xml并将
标记编辑为景观时,只有主视图是景观。如果导航到第二个视图,它将返回到纵向视图。有什么帮助吗?

设备可能是一个巨大的因素。您在什么设备上遇到问题

也就是说,除了将aspectRatio设置为横向外,我还将尝试将autoOrients设置为false:

    <!-- The initial aspect ratio of the app when launched (either "portrait" or "landscape"). Optional. Mobile only. Default is the natural orientation of the device -->
    <aspectRatio>landscape</aspectRatio>

    <!-- Whether the app will begin auto-orienting on launch. Optional. Mobile only. Default false -->
    <autoOrients>false</autoOrients>

景观
假的

您可以在文档的属性上进行设置。进入文件>发布设置>点击配置播放器(“Android版Air”、“iOS版Air”、“Flash Player 11”等)。 现在,标记“自动定向”

像这样:


现在,保存并测试。

我已经正确设置了aspectRatio和autoOrients。但如果我移动到下一个视图,它会恢复为纵向。我的目标是iPhone4设备。好的,我把整个东西导出到FXP,你可以在这里下载。