I'm trying to hide the statusbar on the landingpage of my app only. I figured this is the right function and it does get executed, however the status bar still remains there
override func viewDidAppear(animated: Bool) {
super.viewDidAppear(animated)
FBSDKLoginManager().logOut()
self.prefersStatusBarHidden()
}
override func prefersStatusBarHidden() -> Bool {
return true
}
What am I doing wrong?