Created
February 26, 2016 20:05
-
-
Save whitmanc/48f01d77a45169bbb1d3 to your computer and use it in GitHub Desktop.
Hide status bar in ios - 2 methods
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Method 1- | |
Add following to MainViewController.m | |
-(BOOL)prefersStatusBarHidden{ | |
return YES; | |
} | |
Method 2- | |
Within your project target in xCode, configure these settings: | |
`View controller-based status bar appearance`:`NO` | |
`Status bar is initially hidden`:`YES` | |
NOTE: xCode will autocomplete within the IDE - it did for me at least |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment