Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Swift How to hide Carrier, Time and battery in IOS [duplicate]

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.

like image 465
Salah Avatar asked Oct 17 '16 21:10

Salah


Video Answer


1 Answers

In your media player view controller:

override var prefersStatusBarHidden: Bool {
    return true
}
like image 132
Connor Avatar answered Sep 28 '22 07:09

Connor



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!