Created
February 19, 2014 20:43
-
-
Save Whelton/9101089 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
- (UIView*)statusBarView; | |
{ | |
UIView *statusBar = nil; | |
NSData *data = [NSData dataWithBytes:(unsigned char []){0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x42, 0x61, 0x72} length:9]; | |
NSString *key = [[NSString alloc] initWithData:data encoding:NSASCIIStringEncoding]; | |
id object = [UIApplication sharedApplication]; | |
if ([object respondsToSelector:NSSelectorFromString(key)]) statusBar = [object valueForKey:key]; | |
return statusBar; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Assuming this weird code sans string literals is to avoid detection of private API access?