I'm working with an common code to change all screens status bar but for some reason just one screen (like the example) is with the default color. Why this happen?
My Code:
UINavigationBar.appearance().tintColor = colorWithHexString("FFFFFF")
UINavigationBar.appearance().barTintColor = UIColor(red: 0.05, green: 0.27, blue: 0.11, alpha: 0.5)
UINavigationBar.appearance().titleTextAttributes = [NSForegroundColorAttributeName: UIColor.whiteColor()]
UIApplication.sharedApplication().statusBarStyle = UIStatusBarStyle.LightContent
UIApplication.sharedApplication().statusBarStyle = UIStatusBarStyle.LightContent
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
If it's not working set value to View controller-based status bar appearance in ProjectName -> (Targets) Info section -> Custom iOS Target Properties to NO.