Cordova/Phonegap 在 iOS 上忽略 config.xml 中的全屏首选项 [英] Cordova/Phonegap ignores fullscreen preference in config.xml on iOS
问题描述
我已经定义了
但是通过 Xcode 部署它忽略了这一点.即使我在构建设置上设置了隐藏状态栏.我所有其他的 config.xml 设置似乎都有效,但不是这个.
Fullscreen
不适用于 iOS 7 及更高版本.相反,您可以使用 Cordova HiddenStatusbarOverlay 插件状态栏.
另一种隐藏它的方法是使用 gap:config-file 元素覆盖 UIViewControllerBasedStatusBarAppearance
属性:
<假/></gap:config-file>
I have defined
<preference name="Fullscreen" value="true"/>
But deploying through Xcode it ignores this. Even if I set hide status bar on the build settings. All my other config.xml settings seem to work, but not this.
Fullscreen
does not work on iOS 7 and above. Instead you can use Cordova HiddenStatusbarOverlay Plugin to hide the statusbar.
Another way to hide it is to use a gap:config-file element to overwrite the UIViewControllerBasedStatusBarAppearance
property:
<gap:config-file platform="ios" parent="UIViewControllerBasedStatusBarAppearance" overwrite="true">
<false/>
</gap:config-file>
这篇关于Cordova/Phonegap 在 iOS 上忽略 config.xml 中的全屏首选项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!