简体   繁体   English

iOS中的Adobe Air全屏

[英]Adobe air full screen in ios

I have created a basic flash module using intellij idea. 我已经使用intellij想法创建了一个基本的Flash模块。 When i run the app in android which shows the content in full screen but when i run the same app in ios there is some blank black space on top and bottom of the screen. 当我在android中运行该应用程序时,该应用程序以全屏显示内容,但是当我在ios中运行相同的应用程序时,屏幕顶部和底部会出现一些空白。

This is the screen shot of view in android 这是android中视图的屏幕截图

在此处输入图片说明

This is the view in ios 这是ios中的视图

在此处输入图片说明

Here is my ios description xml 这是我的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>

Now i would like to know how can i make the ui in ios also same as in android? 现在我想知道如何使ios中的ui也与android中的相同?

It looks like you are missing the launch images for iOS. 看来您缺少iOS的启动映像。 This is why you get the black bars. 这就是为什么出现黑条的原因。 If you add them for the device you are testing, it will go full screen. 如果将它们添加到要测试的设备,它将进入全屏显示状态。 In order to add them you can go to this link , find the appropriate dimension, and then add a png file in your src file. 为了添加它们,您可以转到此链接 ,找到合适的尺寸,然后在src文件中添加png文件。

Make sure to include these files during export. 确保在导出过程中包括这些文件。

You can also use this tool to autogenerate all the files needed 您还可以使用此工具自动生成所需的所有文件

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM