Created
October 28, 2014 09:55
-
-
Save mlabraca/53798e3e0554de26ffca to your computer and use it in GitHub Desktop.
Applies alpha to status bar, but using private methods that would make app been rejected.
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
- (void) hideStatusbar:(BOOL)mustHide | |
{ | |
UIView *statusBarView = [[UIApplication sharedApplication] valueForKey:[@[@"status", @"Bar"] componentsJoinedByString:@""]]; | |
statusBarView.alpha = mustHide ? 0 : 1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment