【发布时间】:2017-01-09 01:21:29
【问题描述】:
我已经使用 Ionic 2 构建了一个应用程序。当我在浏览器中运行它时,UI 看起来不错,但是一旦我在 iOS 模拟器中运行,一切看起来都很笨重。问题在于状态栏。我需要隐藏状态栏。我尝试使用 ionic-native 的 StatusBar,就像这样-
import {StatusBar} from 'ionic-native';
constructor(platform: Platform) {
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.
StatusBar.hide();
//StatusBar.styleDefault();
});
但实际上它并没有隐藏状态栏,而是它只是用我的页眉颜色覆盖状态栏颜色。隐藏状态栏的任何解决方案。
【问题讨论】:
标签: angular cordova-plugins ionic2 cordova-2.0.0