How to bring back the Status Bar in iOS 6 when compiling with Xcode 5

Xcode 5 has more than a few annoying habits. One of them is that the status bar disappears when you run your app under iOS 6, if the option “Hide Status Bar during launch” is checked. On iOS 7 it correctly hides the status bar during launch, but under iOS 6 it’s gone for good.

Screen Shot 2013-11-16 at 09.35.26

All we have to do to correct this idiosyncratic behaviour is add one line of code to our AppDelegate.m file, in the didFinishLaunchingWithOptions method:

[[UIApplication sharedApplication] setStatusBarHidden: NO];

Now the status bar shows up in the app, and is hidden as the description says, on both iOS 6 and iOS 7.





Leave a Reply