我们目前正在尝试将我们的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 .我是从Windows 7开发的,使用FlashDevelop。我也尝试了不同的组合renderMode,fullScreen,宽度/高度,但没有任何帮助。这个应用程序在iPad上太小了,而且肯定是而不是全屏。
发布于 2012-06-04 12:30:56
如果iPad上有一个2X按钮,那么您正在运行的是iPhone应用程序,而不是“真正的”iPad应用程序。问题在于XML。您需要指定UIDeviceFamily才能将其编译为iPad应用程序: leebrimelow.com/?p=2764
发布于 2013-05-14 08:49:35
看这条线。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>我获得了成功。
https://stackoverflow.com/questions/10880709
复制相似问题