Setting UIApplication statusBarHidden to YES does not work in iOS 7

前端 未结 2 1457
别跟我提以往
别跟我提以往 2021-01-20 18:20

I\'ve been using

[UIApplication sharedApplication].statusBarHidden = YES; 

to hide the status bar when users enter specific UIViewControlle

相关标签:
2条回答
  • 2021-01-20 18:22

    What worked for me was setting "Status bar is initially hidden" to YES in my app's Info.plist.

    0 讨论(0)
  • 2021-01-20 18:31

    EDITED:::

    that is new updated answer :
    Do in plist file

    "View controller-based status bar appearance" to NO and write code

         [UIApplication sharedApplication].statusBarHidden = YES; 
    

    in appdelegate

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