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:


>> Browse more code snippets