[英]Cordova/Phonegap ignores fullscreen preference in config.xml on iOS
I have defined 我已经定义了
<preference name="Fullscreen" value="true"/>
But deploying through Xcode it ignores this. 但是通过Xcode进行部署却忽略了这一点。 Even if I set hide status bar on the build settings.
即使我在构建设置上设置了隐藏状态栏。 All my other config.xml settings seem to work, but not this.
我的所有其他config.xml设置似乎都有效,但不是这样。
Fullscreen
does not work on iOS 7 and above. Fullscreen
在iOS 7及更高版本上无效。 Instead you can use Cordova HiddenStatusbarOverlay Plugin to hide the statusbar. 相反,您可以使用Cordova HiddenStatusbarOverlay插件来隐藏状态栏。
Another way to hide it is to use a gap:config-file element to overwrite the UIViewControllerBasedStatusBarAppearance
property: 隐藏它的另一种方法是使用gap:config-file元素来覆盖
UIViewControllerBasedStatusBarAppearance
属性:
<gap:config-file platform="ios" parent="UIViewControllerBasedStatusBarAppearance" overwrite="true">
<false/>
</gap:config-file>
use following preference tag. 使用以下首选项标记。 that works fine for me.
这对我来说很好。
<preference name="StatusBarOverlaysWebView" value="true" />
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.