Just a small snippet to hide the Status Bar on your UIViewController. Just add the following override function in your UIViewController. It should override the Status Bar setting.
//Hide the status bar
override func prefersStatusBarHidden() -> Bool {
return true;
}
https://www.youtube.com/watch?v=Eb157lgN3c8 Swift 3.0
override var prefersStatusBarHidden: Bool {
get {
return true
}
}
This website uses cookies
This website uses cookies to examine site traffic and user activity while on this site. More details...