I am trying to set the status bar of my entire iOS app hidden. (The app deployment target is set to iOS 7.1).
I have tried the following (and none worked):
Adding this line to application:didFinishLaunchingWithOptions:
in AppDelegate.m :
[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationNone];
and also this line:
[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:NO];
I have tried setting the statusBar to None for each of my View Controllers in Storyboard View --> Attributes inspector --> Simulated Metrics.
I have tried adding the key Status bar is initially hidden
as YES in Info.plist file of my app.
None of these worked. Can anyone guide me as to what is wrong? Btw, I am using the latest version of XCode on my Mac and latest iOS on my test device. And, all my View Controllers have been set to Landscape mode only in Attributes inspector. And the supported orientations of the app are Landscape both sides.