I want to set black color(bar tint color) of status bar and white tint color when navigation bar is hidden.
And I want it for specific views. I have tried this:
override func viewDidLoad()
{
super.viewDidLoad()
self.navigationController?.setNavigationBarHidden(true, animated: true)
self.navigationController?.navigationBar.barStyle = UIBarStyle.Black
self.navigationController?.navigationBar.barTintColor = UIColor.blackColor()
self.navigationController?.navigationBar.tintColor = UIColor.whiteColor()
}
I also tried this thing: I set the value to NO in P-list for View controller-based status bar appearance.