gpt4 book ai didi

ios - 如何将 iOS8 代码片段添加到 Adob​​e Air iOS app.xml?

转载 作者:行者123 更新时间:2023-11-29 02:26:28 25 4
gpt4 key购买 nike

我正在使用 Adob​​e Air 构建 iOS 8 iPhone 应用程序,我想隐藏 iOS 的状态栏。我发现这个片段应该可以解决问题:

<key>UIStatusBarHidden</key>
<true/>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>

如何将其添加到我的应用程序的 app.xml 中?我尝试了以下操作,但收到了意外元素错误消息:

<iPhone>
<InfoAdditions><![CDATA[
<key>UIStatusBarHidden</key>
<true/>
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
]]></InfoAdditions>
</iPhone>

最佳答案

如前所述here您不能在 XML 中定义该属性

AIR sets several entries in the generated Info.plist file to ensure that application and runtime features work correctly. You cannot define the following settings:

CFBundleDisplayName

CFBundleExecutable

CFBundleIconFiles

CFBundleIdentifier

CFBundleInfoDictionaryVersion

CFBundlePackageType

CFBundleResourceSpecification

CFBundleShortVersionString

CFBundleSupportedPlatforms

CFBundleVersion

CTAutoOrients

CTInitialWindowTitle

CTInitialWindowVisible

CTIosSdkVersion

CTMaxSWFMajorVersion

DTPlatformName

DTSDKName

MinimumOSVersion (reserved till 3.2)

NSMainNibFile

UIInterfaceOrientation

UIStatusBarHidden

UISupportedInterfaceOrientations

Note: You can define the MinimumOSVersion. The MinimumOSVersion definition is honoured in Air 3.3 and later.

但是,您可以像这样在 initialWindow 节点中设置状态栏样式

<fullScreen>true</fullScreen>
<systemChrome>none</systemChrome>

第一行将在启动时删除状态,第二行在运行时删除状态

关于ios - 如何将 iOS8 代码片段添加到 Adob​​e Air iOS app.xml?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27472050/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com