Skip to content

Instantly share code, notes, and snippets.

@Whelton
Created February 19, 2014 20:43
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Whelton/9101089 to your computer and use it in GitHub Desktop.
Save Whelton/9101089 to your computer and use it in GitHub Desktop.
- (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;
}
@oisin
Copy link

oisin commented Feb 19, 2014

Assuming this weird code sans string literals is to avoid detection of private API access?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment