答案 0 :(得分:0)
根据此question,我们可以使用以下代码隐藏Ionic 2中的状态栏:
import {StatusBar} from 'ionic-native';
import {App, Platform} from 'ionic-angular';
//He wrotes 'ionic/ionic', but it doesn't work for me.
constructor(private platform: Platform) {
this.platform.ready().then(()=>{
StatusBar.hide();
}
}