Skip to content

Instantly share code, notes, and snippets.

@xandrucea
Last active December 23, 2015 19:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xandrucea/6681318 to your computer and use it in GitHub Desktop.
Save xandrucea/6681318 to your computer and use it in GitHub Desktop.
don't resize screen on TabBarController/TableView....
-----------------------------------------------------
if( [self respondsToSelector:@selector(edgesForExtendedLayout)] ) {
self.edgesForExtendedLayout = UIRectEdgeNone;
}
turn off header
---------------
1. General --> Deployment Info --> Status Bar Style, select "Hide during application launch"
2. Info --> View controller-based status bar appearance --> NO
change UIStatusBar text color
------------------------------
- viewcontroller based, add to specific viewcontroller
1. UIViewControllerBasedStatusBarAppearance to YES
2. In viewDidLoad do a [self setNeedsStatusBarAppearanceUpdate];
3. -(UIStatusBarStyle)preferredStatusBarStyle{
return UIStatusBarStyleLightContent;
}
- for whole app
1. UIViewControllerBasedStatusBarAppearance to NO
2. [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleBlackTranslucent];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment