iOS状态栏覆盖phonegap

我正在使用PhoneGap(Cordova)开发iOS应用程序,我的问题是状态栏覆盖了我的webview /应用程序:

在此处输入图像描述

我在config.xml文件中添加了首选项,但这些不起作用:

   

我怎么解决这个问题?

查看步骤3:在此链接页面底部…

https://ccoenraets.github.io/cordova-tutorial/handlebars-templates.html

它实际上与您所做的完全相同,但也涉及状态栏问题的节点插件。

 cordova plugin add cordova-plugin-statusbar 

希望它有所帮助。

解决方法:安装cordova-plugin-statusbar后,将此行添加到config.xml:

  

然后在index.html中:

  

状态栏插件的安装命令

 cordova plugin add cordova-plugin-statusbar 

StatusBarOverlaysWebView(布尔值,默认为true)。 在iOS 7上,使状态栏覆盖或不在启动时覆盖WebView。 在config.xml中添加此行

  

请阅读官方文档以便更好地理解