How to remove iOS status bar with Phonegap Build?

前端 未结 9 2029
走了就别回头了
走了就别回头了 2021-02-02 10:11

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 Buil

9条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-02 10:50

    I've answered this for removing the Status bar altogether in your previous question

    The essential part:

    I got this to work beautifully in Cordova 3.6 + iOS 7.1. And considering that iOS 7 and 8 each have 50% of market share this solution should be enough.

    Plugin I'm using: org.apache.cordova.statusbar

    Instead of using StatusBar.hide() I used:

    var hideSb = function(){
    //        StatusBar.hide;
            cordova.exec(null, null, 'StatusBar', 'hide', ['Ehi', 'You']);
        };
    

提交回复
热议问题