【问题标题】:StatusBar over ion-nav on ionic 3离子3上离子导航上的状态栏
【发布时间】:2019-02-06 23:44:20
【问题描述】:

为什么我的 statusBar 在 ion-nav 上结束了?

我的home.html是这样的

<ion-header>
<ion-navbar color="royal">
  <button ion-button icon-only menuToggle>
    <ion-icon name="menu"></ion-icon>
  </button>
  <ion-title>
    Empreendimentos
  </ion-title>
</ion-navbar>

app.components.ts是这样的

import { StatusBar } from '@ionic-native/status-bar';


initializeApp() {
this.platform.ready().then(() => {
  // Okay, so the platform is ready and our plugins are available.
  // Here you can do any higher level native things you might need.
  this.statusBar.overlaysWebView(true);
  this.statusBar.backgroundColorByHexString('#4a148c');
  this.splashScreen.hide();
});

}

这是我应用上的状态栏

【问题讨论】:

    标签: javascript css typescript ionic3


    【解决方案1】:

    我已解决如下

    this.statusBar.overlaysWebView(false);
    

    【讨论】:

      猜你喜欢
      • 2019-01-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-12-07
      • 1970-01-01
      • 2018-04-27
      • 1970-01-01
      相关资源
      最近更新 更多