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
status bar
You can make the text white by calling:
UIApplication.sharedApplication().setStatusBarStyle(UIStatusBarStyle.LightContent, animated: true)
The status bar has a transparent background. There is no way of changing that. You can pin a view underneath it to act as a background.