I am trying to change the color of the status bar in my Swift application to white, but I hit a brick wall. I have 3 ViewControllers, each of which is embedded in the NavigationController (maybe this is a problem? I already tried to put the code in the NavigationController class.) I tried using both of the following code snippets in the didFinishLaunchingWithOptions file of my AppDelegate.swift, but it didn’t work.
application.statusBarStyle = .LightContent
and
UIApplication.sharedApplication().statusBarStyle = .LightContent
All Docs have to say about this is that UIBarButtonStyle is Int and gave me this enum fragment that didn't help me at all with the implication.
enum UIStatusBarStyle : Int { case Default case LightContent case BlackOpaque }
What am I missing?
ios swift xcode6 uistatusbar appdelegate
davidrayowens Jun 16 2018-11-14T00: 00Z
source share