3

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.

Everus
  • 358
  • 3
  • 17

2 Answers2

5

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

Mitul Bhadeshiya
  • 1,280
  • 1
  • 12
  • 32
  • Just adding the final `prefersStatusBarHidden` method was all I needed for iOS 7 while keeping `[UIApplication sharedApplication].statusBarHidden = YES;` in `viewWillAppear:` kept working in iOS 6 without breaking iOS 7. – Logachu Nov 18 '13 at 21:00
0

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

Mark
  • 73
  • 1
  • 5