我正在开发一个使用Adobe Air打包的iOS应用程序。我正在尝试将InterfaceOrientation设置为info.plist。
所以在我的app.xml中添加了UIInterfaceOrienation,但是当我尝试创建一个iOS包时,它会给我一个"application.iPhone.InfoAdditions包含一个无效值“的错误。
这就是app.xml的样子
<iPhone>
<InfoAdditions>
<![CDATA[
...... other values
<key>UIInterfaceOrientation</key>
<string>UIInterfaceOrientationLandscapeRight</string>
]]>
</InfoAdditions>我不太确定我在这里错过了什么。有什么想法吗?
发布于 2012-11-28 22:32:23
我不认为你能通过航空包装器做到这一点。
你能得到的最接近的imho是这个
画像假
您建议的解决方案将在本机开发中工作,但(目前)不能使用air packager。
我认为你可以通过这样的代码来改变它: stage.setOrientation( StageOrientation.ROTATED_LEFT );
来源:http://polygeek.com/4301_air-mobile_playing-with-stage-orientation-in-mobile-air-apps
https://stackoverflow.com/questions/13607354
复制相似问题