AIR FullScreen未在iOS上应用

时间:2012-06-04 11:45:15

标签: ios flash ipad air adobe

我们目前正在尝试将我们的Flash / AIR应用程序带到iPad进行测试。 基本上,它可以工作,但应用程序显示在一个非常小的窗口中。

原始swf设置为2048x1536(应该是正确的iPad分辨率)。然而,似乎iPad正试图将2048x1536放入显示屏中心的那个小窗口。

如果我按下“2x”以使应用程序更大,它会扩展所有内容,并通过这使得所有内容都非常像素化。它看起来很尴尬。

在桌面和Android上,当然一切正常。

这是application.xml:

<?xml version="1.0" encoding="utf-8"?>
<application xmlns="http://ns.adobe.com/air/application/3.2">
<id>com.xxx.xxx</id>
<versionNumber>1.0</versionNumber>
<filename>xxx</filename>
<name>xxx</name>

<initialWindow>
  <title>xxx</title>
  <content>xxx.swf</content>
  <systemChrome>standard</systemChrome>
  <transparent>false</transparent>
  <visible>true</visible>
  <minimizable>true</minimizable>
  <maximizable>true</maximizable>
  <resizable>true</resizable>
  <aspectRatio>landscape</aspectRatio>
  <renderMode>auto</renderMode>
  <autoOrients>true</autoOrients>
  <fullScreen>true</fullScreen>
  <width>2048</width>
  <height>1536</height>
</initialWindow>

<supportedProfiles>desktop mobileDevice</supportedProfiles>
<android>
<manifestAdditions><![CDATA[<manifest>
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
</manifest>]]></manifestAdditions>
</android>

<iPhone>
  <InfoAdditions><![CDATA[<key>CFBundleDevelopmentRegion</key>
  <string>en</string>
  <key>UIStatusBarStyle</key>
  <string>UIStatusBarStyleDefault</string>
  <key>UIRequiredDeviceCapabilities</key>
    <array>
  <string>wifi</string>
  <string>microphone</string>
    </array>
  <key>UIRequiresPersistentWiFi</key>
  <string>YES</string>]]></InfoAdditions>
</iPhone>
</application>

以下是我打包* .ipa文件的方法:

adt -package  -target ipa-test   -provisioning-profile  bat\certificates\xxx.mobileprovision  -storetype pkcs12 -keystore "bat\certificates\xxx.p12" -storepass xxx air\xxx.ipa application.xml -C output .

我使用FlashDevelop从Windows 7开发。我也尝试过renderMode,fullScreen,width / height的不同组合,但没有任何帮助。该应用程序在iPad上太小了,绝对全屏。

2 个答案:

答案 0 :(得分:1)

如果iPad上有2X按钮,则表示您运行的是iPhone应用程序,而不是“真正的”iPad应用程序。问题出在XML中。您需要指定UIDeviceFamily才能将其编译为iPad应用程序:leebrimelow.com/?p = 2764

答案 1 :(得分:1)

看到这个帖子。 http://www.flashdevelop.org/community/viewtopic.php?p=43643 application.xml中

<key>UIDeviceFamily</key>
<array>
<!-- iPhone support -->
<!--<string>1</string> -->
<!-- iPad support -->
<string>2</string>  <==== for iPad
</array>

我成功完成了。

相关问题