Set the status bar to black colour
I want to set the colour of the status bar (The small strip on top where the clock and battery is displayed) to black background with white text. How can I do this ? My approach so far : I added the following in the info.plist View controller-based status bar appearance --> NO and in the viewController - (UIStatusBarStyle)preferredStatusBarStyle { return UIStatusBarStyleDefault; } However, the style does not change. How can I make the status bar black? For Xcode 8 / iOS 10 / Swift 3: Change the status bar background color temporarily on one view by adding a colored UIView under the status bar.