Skip to content

Instantly share code, notes, and snippets.

@whitmanc
Created February 26, 2016 20:05
Show Gist options
  • Save whitmanc/48f01d77a45169bbb1d3 to your computer and use it in GitHub Desktop.
Save whitmanc/48f01d77a45169bbb1d3 to your computer and use it in GitHub Desktop.
Hide status bar in ios - 2 methods
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