In a ViewController, which I presented modally, I did this:
override func prefersStatusBarHidden() -> Bool {
return true
}
This used
In iOS 9, Xcode 7, Swift 2.0, it's back to how it was previously.
override func prefersStatusBarHidden() -> Bool {
return true
}
In fact Xcode will tell you that
UIApplication.sharedApplication().setStatusBarHidden(true, withAnimation: .None)
has been deprecated and that you should use the prefersStatusBarHidden method.