I create views programmatically. To hide status bar in view I use
[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:NO];
in viewDidload method. The problem is every view have to implement the code above to be status bar hidden. Is there a way (programmatically) to set status bar hidden just in one place in the app so entire app to be without the status bar ?
I have tried to add this in AppDelegate, but it doesn’t work.
Open your app plist file
MyApp-Info.plistand add a row with theStatus bar is initially hiddenand theYESvalue.EDIT:
If you want to do it programmatically, add this in your
ApplicationDidFinishLaunching: