【问题标题】:statusbar / header appears in iOS-11. How will i hide it?状态栏/标题出现在 iOS-11 中。我将如何隐藏它?
【发布时间】:2017-09-28 06:11:35
【问题描述】:

我做了一个离子应用程序。 在 iOS-9 和 iOS-10 中仍然可以完美运行。

今天,我将 iOS-10 更新为 iOS-11,我还将 xcode-8 更新为 xcode-9。

iOS-11 中有一个奇怪的问题。有关问题,请参见下图。

当我在 xcode8 和 ios10 中构建应用程序时,没有出现标题/状态栏。

但是,当我将 xcode8 更新为 xcode9 并将 ios10 更新为 ios11 时,就会出现此问题。

请告诉我,我应该如何隐藏或使其透明。

提前致谢

【问题讨论】:

    标签: ionic-framework ios11 xcode9


    【解决方案1】:

    我终于找到了解决办法。

    我安装了插件

    cordova plugin add cordova-plugin-disable-ios11-statusbar --save
    

    然后构建并运行应用程序,问题将得到解决

    【讨论】:

      【解决方案2】:

      将此添加到您的视口元标记viewport-fit=cover

      【讨论】:

        【解决方案3】:

        check the blog (iOS 11 Checklist)

        ionic cordova plugin rm cordova-plugin-statusbar
        ionic cordova plugin add https://github.com/apache/cordova-plugin-statusbar.git
        

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2012-09-21
          • 2013-09-29
          • 1970-01-01
          • 2021-05-10
          • 2013-11-18
          相关资源
          最近更新 更多