PhoneGap 3.3.0 / iOS 7 /状态栏和启动画面问题

时间:2014-04-23 17:10:14

标签: ios cordova

提前感谢您的关注和您可能给予的帮助。

我想知道是否有方法可以启动一个使用PhoneGap 3.3.0构建的应用程序,该应用程序在iOS 7下运行,状态栏隐藏,并在显示启动画面后显示。

再次感谢。

PD:我正在使用jQuery 1.11.0和jQuery Mobile 1.4.0。

2 个答案:

答案 0 :(得分:0)

试试这个:

  1. 将以下代码添加到info-plist以初始隐藏状态栏:

    <key>UIStatusBarHidden</key>
    <true/>
    <key>UIViewControllerBasedStatusBarAppearance</key>
    <false/>
    
  2. 当触发deviceready事件时,显示状态栏:

    document.addEventListener("deviceready", showStatusBar, true);
    
    var showStatusBar = function() {
        StatusBar.show();
    };
    
  3. 请参阅status bar documentation

答案 1 :(得分:0)

我和你一样使用。究竟。

这就是我摆脱状态栏的方式:

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

虽然我不知道你的意思“并在显示启动画面后显示它。”

相关问题