Answers for "It is best to hide the status bar in your app in ios"

1

hide status bar ios

override func viewWillAppear(animated: Bool) {
    super.viewWillAppear(animated)
    UIApplication.sharedApplication().setStatusBarHidden(true, withAnimation: UIStatusBarAnimation.None)
}

override func viewWillDisappear(animated: Bool) {
    super.viewWillDisappear(animated)
    UIApplication.sharedApplication().setStatusBarHidden(false, withAnimation: UIStatusBarAnimation.None)
}
Posted by: Guest on July-20-2020

Code answers related to "It is best to hide the status bar in your app in ios"

Code answers related to "Swift"

Browse Popular Code Answers by Language