Just like the question says, I need to hide status + navigation bar when user taps. So far, navigation bar was easy. Cann't find a way to do the same with status bar.
By the way, tried
UIApplication.sharedApplication().statusBarHidden = true
but no luck yet
You should add this key/value pair to your project's Info.plist.
<key>UIViewControllerBasedStatusBarAppearance</key>
<false/>
After that,calling
UIApplication.sharedApplication().statusBarHidden = true
or
UIApplication.sharedApplication().setStatusBarHidden(true, withAnimation: .Fade) // with animation option.
This post gives more details > How to hide iOS status bar
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With