【问题标题】:Hide status bar in portrait mode in iOS8在iOS8中以纵向模式隐藏状态栏
【发布时间】:2015-04-14 13:29:01
【问题描述】:

我已按照此处的说明进行操作 On iOS8, displaying my app in landscape mode will hide the status bar but on iOS 7 the status bar is displayed on both orientations

即设置隐藏在plist中的状态栏并添加:

[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationNone];

但我仍然无法隐藏状态栏。还有什么建议吗?

【问题讨论】:

    标签: ios8 statusbar


    【解决方案1】:

    选择您隐藏状态栏的视图控制器,并将状态栏参数设置为 NONE,如下图所示:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-11-14
      • 1970-01-01
      • 2015-01-01
      • 1970-01-01
      • 2012-06-05
      • 1970-01-01
      • 2021-09-25
      • 2011-04-29
      相关资源
      最近更新 更多