2012-06-04 84 views
0

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

原始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,width/height的不同组合,但没有任何帮助。该应用程序在iPad上太简单了,绝对是不是全屏。

回答

1

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

+0

application.xml文件没有iPad标签;) – TheSHEEEP

+1

@TheSHEEEP:我明白了。不过,您可能需要指定UIDeviceFamily,或者有其他设置告诉编译器制作iPad应用程序:http://www.leebrimelow.com/?p=2764 – geon

+0

是的,我错过了UIDeviceFamily。谢谢!你可以编辑你的答案,以便我可以将其标记为解决方案吗? :) – TheSHEEEP