Salah Salah - 1 year ago 208
Swift Question

Swift How to hide Carrier, Time and battery in IOS

i'm getting annoying when i see that bar in top of playing video.
How can i hide\unhide status bar in viewcontroller ?

enter image description here

Any help will be appreciated.

Answer Source

In your media player view controller:

override var prefersStatusBarHidden: Bool {
    return true
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download