Salah Salah - 1 month ago 9
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

In your media player view controller:

override var prefersStatusBarHidden: Bool {
    return true
}
Comments