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.





Jay is the CEO and founder of WP Hosting, a boutique style managed WordPress hosting and support service. He has been working with Plesk since version 9 and is a qualified Parallels Automation Professional. In his spare time he likes to develop iOS apps and WordPress plugins, or draw on tablet devices. He blogs about his coding journey at http://wpguru.co.uk and http://pinkstone.co.uk.