How can I show/hide the status bar on a pageViewController using tap gesture (iOS8 / Swift)
问题 Looking through all the solutions given to similar questions, I have been trying to get the statusBar to show/hide with a tap gesture. I have set View controller-based status bar appearance = NO in the plist. I have tried the following code in my DataViewController (page view controller) AND in the RootViewController : let app = UIApplication.sharedApplication() app.setStatusBarHidden(true, withAnimation: UIStatusBarAnimation.Fade) and it doesn't work. This is embedded in a UITabBarController