Hide Status Bar In iOS 8 app

后端 未结 7 1024
悲哀的现实
悲哀的现实 2020-12-07 12:57

I have tried

[[UIApplication sharedApplication] setStatusBarHidden:YES]; 

This does nothing.

And I have looked in my Info.pli

相关标签:
7条回答
  • 2020-12-07 13:46

    You can hide the status bar without writing a single line of code, it just requires two entries into the info.plist the first is

    "View controller-based status bar appearance" set to NO

    the second is

    "Status bar is initially hidden" set to YES

    0 讨论(0)
提交回复
热议问题