I want to change background color of status bar on iOS 7, and I\'m using this code:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOp
Call this function from ViewDidLoad passing with your status bar color.
func setStatusBarBackgroundColor(color: UIColor)
{
guard let statusBar = UIApplication.sharedApplication().valueForKey("statusBarWindow")?.valueForKey("statusBar") as? UIView
else
{
return
}
statusBar.backgroundColor = color
}
Hope It'll help.