Looking through all the solutions asked by similar questions, I try to show the statusBar to show / hide the gesture of pressing.
I set View controller-based status bar appearance = NO to plist.
I tried the following code in my DataViewController (page view manager) and in RootViewController :
let app = UIApplication.sharedApplication() app.setStatusBarHidden(true, withAnimation: UIStatusBarAnimation.Fade)
and it does not work.
This is built into the UITabBarController , can it change?
In addition, I was able to get the following to hide the statusBar from the RootViewController :
override func prefersStatusBarHidden() -> Bool { return true }
But the DataViewController does not even call this function and could hide it constantly, and not turn it on / off.
Any ideas?
source share