Phonegap Build隐藏iOS状态栏

时间:2019-07-14 08:42:08

标签: phonegap-build phonegap

如何隐藏Phonegap Build中的状态栏?

<?xml version="1.0" encoding="UTF-8" ?>
<widget xmlns   = "http://www.w3.org/ns/widgets"
    id          = "id"
    versionCode = "10"
    version     = "1.0.0" >

  <name>Name</name>
  <author>Me</author>

  <preference name="fullscreen" value="true" />

  <preference name="webviewbounce" value="false" />
  <preference name="DisallowOverscroll" value="true" />

  <preference name="StatusBarOverlaysWebView" value="true" />
  <preference name="StatusBarDefaultScrollToTop" value="false" />

  <plugin name="cordova-plugin-statusbar" />
  <plugin name="cordova-plugin-device-orientation" />

  <gap:config-file platform="ios" parent="UIViewControllerBasedStatusBarAppearance" overwrite="true">
    <false/>
  </gap:config-file>
</widget>

这是我目前的配置,但状态栏仍然存在。

我已经查看了一些现有的答案,但他们要么提到了我不使用的Cordova,要么它们不起作用。

0 个答案:

没有答案
相关问题