【问题标题】:Adobe air full screen in iosios中的Adobe air全屏
【发布时间】:2019-08-15 16:11:35
【问题描述】:

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

这是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 中的一样?

【问题讨论】:

    标签: actionscript-3 apache-flex air


    【解决方案1】:

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

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

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

    【讨论】:

      猜你喜欢
      • 2017-04-10
      • 2014-10-09
      • 1970-01-01
      • 2017-09-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多