在ios中的Adobe air全屏

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了在ios中的Adobe air全屏相关的知识,希望对你有一定的参考价值。

我使用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中相同?

答案

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

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

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

以上是关于在ios中的Adobe air全屏的主要内容,如果未能解决你的问题,请参考以下文章

ActionScript 3 Adobe AIR:在本地保存数据片段

Adobe AIR的 - 硬盘上保存图像

Adobe AIR 无法在 iOS 上加载 PDF

Adobe AIR 3.0自带运行时兼容什么版本的Android和iOS?

Adobe ANE 适用于 iOS 和 Android 设备,但不适用于 AIR 模拟器

带有自定义 jar 库的 adobe air 中的 NativeProcess