How to make your statusbar style white in iOS9

Sometimes I am a little irrated by making the statusbar white in iOS development. It looks simple. But, the way to do it is a little complicated.

How to make your status bar style white in iOS9

Put the code below into your controller file or AppDelegate file.

self.navigationController?.navigationBar.barStyle = UIBarStyle.Black

When you type it, you might get serveral options for UIBarStyle. But BlackOpaque and BlackTranslucent were deprecated. So don’t be hesitated to choose one of them. If you want to make your statusbar white, choose UIBarStyle.Black. That’s simple.

Leave a Reply