Quantcast
Viewing latest article 2
Browse Latest Browse All 4

Answer by Patrick R for status bar hidden on simulator but not iPhone

You can write this code in viewWillAppear:

UIApplication.shared.setStatusBarHidden(true, with: .slide)

And if you don’t want to hide status bar for other views then you should hide in viewWillDisappear:

UIApplication.shared.setStatusBarHidden(false, with: .slide)

Viewing latest article 2
Browse Latest Browse All 4

Trending Articles