Friday, July 3, 2015

Status bar text

Sometimes your design requires you to use a black navigation controller header. Which will camouflage your status' bar text.

So to change the status' bar text color you are required to do two things:

1) Go to info.plist(note it's the one in the ROOT folder, NOT the one in Supporting Files)
Add a new property "View controller-based status bar appearance" with the value NO

2) go to AppDelegate.swift and add in the following line

UIApplication.sharedApplication().setStatusBarStyle(.LightContent, animated: true)

No comments:

Post a Comment