Last active
December 23, 2015 19:19
-
-
Save xandrucea/6681318 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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