1

I have googled, but they are so complicated. I set the status bar status in AppDelegate:

UIApplication.sharedApplication().statusBarStyle = .LightContent

but no work. Thanks.

Borysko Danko
  • 165
  • 1
  • 16

1 Answers1

8

You can simply do this in a swift file. You can override this function in a viewcontroller class.

override var preferredStatusBarStyle: UIStatusBarStyle {
    return .lightContent
}

You don't need to set any value in info.plist. Just above function will do.

But if you are going to change every view controller in white status colored, then you will need to set in AppDelegate. Hope to make sense.

Mark Moeykens
  • 11,251
  • 4
  • 57
  • 56
Cezar D.
  • 100
  • 6