In my app the status bar is hidden.
I am displaying video in a AVPlayerViewController
, which has a visible status bar (I haven't found a way to remove it short of creating my own view controller, which I don't know how to do).
However, when the AVPlayerViewController is dismissed, the status bar is now visible in the app.
How to I prevent the player from causing the status bar becoming visible in the app?
After two days I finally find solution:
Just skip warnings about setStatusBarHidden deprecation in iOS9.0 and bla.bla.bla. Because prefersStatusBarHidden just didn't worked!!!