Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change status bar text colour from white iOS 7 / Xcode 5 [duplicate]

Tags:

I'm developing an application for a school that I work at. Currently I am having issues with changing the status bar text from it's default state of black to white so we can actually read it!

I have tried everything i've found here and on the dev forums, including calling View controller-based status bar appearance = "NO" and also [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];

enter image description here

like image 256
Damian Worsdell Avatar asked Sep 24 '13 09:09

Damian Worsdell


1 Answers

I just fixed this issue in one of my apps. Implement this in your UIViewController:

- (UIStatusBarStyle)preferredStatusBarStyle {     return UIStatusBarStyleLightContent; } 

Or choose another UIStatusBarStyle value that you need.

like image 165
bneely Avatar answered Oct 06 '22 18:10

bneely