0 works

Change Status Bar Text Colour in iOS


dashboard+ Project

Posted by @starbucks #ios #swift

Code snippet:

// Preferred status bar style lightContent to use on dark background.
// Swift 3
override var preferredStatusBarStyle: UIStatusBarStyle {
    return .lightContent
}
content_copyCopy to Clipboard

More details:

Set the UIViewControllerBasedStatusBarAppearance to YES in the .plist file. In the viewDidLoad do a [self setNeedsStatusBarAppearanceUpdate]; Add the following method:

Code snippet source:

https://stackoverflow.com/questions/17678881/how-to-change-status-bar-text-color-in-ios

>> Browse more code snippets

more_vert