Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting UIApplication statusBarHidden to YES does not work in iOS 7

I've been using

[UIApplication sharedApplication].statusBarHidden = YES; 

to hide the status bar when users enter specific UIViewControllers in iOS 6 and it worked great. In iOS 7 however it still shows a translucent overlay.

like image 328
Everus Avatar asked Nov 26 '25 06:11

Everus


1 Answers

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

like image 121
Mitul Bhadeshiya Avatar answered Nov 28 '25 22:11

Mitul Bhadeshiya



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!