【问题标题】:How to hide the status bar on iOS in a Cinder app?如何在 Cinder 应用程序中隐藏 iOS 上的状态栏?
【发布时间】:2014-10-22 08:14:24
【问题描述】:

我正在使用 Cinder for iOS 制作游戏,但我不知道如何隐藏状态栏。我尝试调用 Cinder 的内置 hideStatusBar() 函数,以及在我的 info.plist 中将 Status bar is initially hidden 选项设置为 YES

这些方法都不起作用,即使结合使用。状态栏在 iOS 8.1 模拟器和我的 iOS 7.1.2 测试设备上都可见。

有什么想法吗?

【问题讨论】:

    标签: ios show-hide statusbar cinder


    【解决方案1】:

    好的,我找到了解决方案。您的 info.plist 中需要这两个条目:

    Status bar is initially hidden YES

    View controller-based status bar appearance NO

    就是这样!

    【讨论】:

      猜你喜欢
      • 2014-08-05
      • 2014-11-26
      • 2011-05-14
      • 2012-09-21
      • 2013-09-29
      • 1970-01-01
      • 2020-02-20
      • 1970-01-01
      相关资源
      最近更新 更多