如何使用Phonegap Build删除iOS状态栏? [英] How to remove iOS status bar with Phonegap Build?

查看:124
本文介绍了如何使用Phonegap Build删除iOS状态栏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Phonegap Build 3.1时是否可以摆脱iOS7中的状态栏?我可以在Xcode中本地构建时删除状态栏,但是一旦我尝试Phonegap Build,它就会再次返回。

Is it possible to get rid of the status bar in iOS7 when using Phonegap Build 3.1? I can remove the status bar when building locally in Xcode, but as soon as I try Phonegap Build, it's back again.


  1. 是否有配置首选项完全删除状态栏?

  2. 如果没有,是否可以将状态栏覆盖在应用视图的顶部并将其设置为透明背景?

希望状态栏按下应用视图20px,现在就是这种情况。

I do not want the status bar to push down the app view 20px, which is the case now.

推荐答案

从Phonegap 3开始,您现在可以自定义plist 文件,通过config.xml。

As of Phonegap 3 you can now customize plist files via config.xml.

代码:

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

这篇关于如何使用Phonegap Build删除iOS状态栏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆