在ios中的Adobe air全屏

问题描述 投票:0回答:1

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

这是android中视图的屏幕截图

enter image description here

这是ios中的视图

enter image description here

这是我的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中相同?

actionscript-3 flex air
1个回答
1
投票

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

确保在导出期间包含这些文件。

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

© www.soinside.com 2019 - 2024. All rights reserved.