Hide the status bar in ios 9

后端 未结 7 2200
小鲜肉
小鲜肉 2020-12-02 18:36

How do you hide the status bar in ios 9?

This is now deprecated:

 [UIApplication sharedApplication] setStatusBarHidden:YES];
7条回答
  •  醉梦人生
    2020-12-02 19:12

    In most of the iOS it will work. I have tested with iOS 10.

    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

提交回复
热议问题