Hide Status Bar In iOS 8 app

后端 未结 7 1065
悲哀的现实
悲哀的现实 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:39

    1. Open info.plist
    2. "View controller-based status bar appearance" set to NO
    3. "Status bar is initially hidden" set to YES
    4. Done

    No need to write a line of code...Cheers

提交回复
热议问题