In my app I have 4 tabs/VC's and in two of them I am changing the status bar from white to black like this:
override func viewWillAppear(animated: Bool) {
super.viewWillAppear(animated)
UIApplication.sharedApplication().statusBarStyle = UIStatusBarStyle.Default
}
override func viewWillDisappear(animated: Bool) {
super.viewWillDisappear(animated)
UIApplication.sharedApplication().statusBarStyle = .LightContent
}
The only problem is if I switch between two tabs/VC's that both have the code above the statusbar will first change to black which is right, but then it changes to white again when entering the other VC.
How can I keep the status bar white on certain VC's ?
