Created
September 21, 2014 18:20
-
-
Save mmackh/e24f4ad31326e54a68f1 to your computer and use it in GitHub Desktop.
Change UIStatusBar Color
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
NSString *statusBarString = [NSString stringWithFormat:@"_s%@at%@sBar",@"t",@"u"]; | |
NSString *colorKey = @"foregroundColor"; | |
id statusBar = [application valueForKey:statusBarString]; | |
if (statusBar && [statusBar respondsToSelector:NSSelectorFromString(colorKey)]) | |
{ | |
[statusBar setValue:[AFPConstantsColorGold colorWithAlphaComponent:0.5] forKey:colorKey]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment