ios 中的 Adob​​e Air 全屏

Adobe air full screen in ios

我使用intellij idea创建了一个基本的flash模块。当我 运行 android 中的应用程序全屏显示内容但是当我 运行 ios 中的相同应用程序时, space 上有一些空白屏幕的顶部和底部。

这是 android

中视图的屏幕截图

这是 ios

中的视图

这是我的ios描述xml

<?xml version="1.0" encoding="utf-8" standalone="no"?>

<id>Main</id>
<filename>Main</filename>
<name>Main</name>
<versionNumber>0.0.1</versionNumber>
<versionLabel>0.01</versionLabel>



<initialWindow>
    <content>main.swf</content>
    <aspectRatio>any</aspectRatio>
    <autoOrients>false</autoOrients>
    <renderMode>auto</renderMode>
    <fullScreen>false</fullScreen>
    <softKeyboardBehavior>pan</softKeyboardBehavior>
</initialWindow>

<!--<icon>-->
    <!--<image16x16>16x16.png</image16x16>-->
    <!--<image32x32>32x32.png</image32x32>-->
    <!--<image48x48>48x48.png</image48x48>-->
    <!--<image57x57>57x57.png</image57x57>-->
    <!--<image72x72>72x72.png</image72x72>-->
    <!--<image76x76>76x76.png</image76x76>-->
    <!--<image120x120>120x120.png</image120x120>-->
    <!--<image128x128>128x128.png</image128x128>-->
    <!--<image152x152>152x152.png</image152x152>-->
<!--</icon>-->

<supportedProfiles>mobileDevice</supportedProfiles>



<iPhone>
    <requestedDisplayResolution>high</requestedDisplayResolution>
    <assetsCar>Assets.car</assetsCar>
    <InfoAdditions>
        <![CDATA[

        <key>UIDeviceFamily</key>
        <array>
            <!-- iPhone and iPod touch devices -->
            <string>1</string>
            <!-- iPad devices -->
            <string>2</string>
        </array>


        ]]>
    </InfoAdditions>

</iPhone>

现在我想知道如何使 ios 中的 ui 也与 android 中的相同?

您似乎缺少 iOS 的启动图像。这就是你得到黑条的原因。如果您为正在测试的设备添加它们,它将全屏显示。为了添加它们,您可以转到 this link,找到合适的维度,然后在您的 src 文件中添加一个 png 文件。

确保在导出过程中包含这些文件。

您也可以使用this tool自动生成所有需要的文件