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

- by

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.

If you enjoy my content, please consider supporting me on Ko-fi. In return you can browse this whole site without any pesky ads! More details here.

Leave a Comment!

This site uses Akismet to reduce spam. Learn how your comment data is processed.