Created
April 26, 2016 14:00
-
-
Save wh1pch81n/ef921944f732de1c45bb93646b462d6f to your computer and use it in GitHub Desktop.
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
UIView *getStatusBar() { | |
UIView *subViewWindow = [[UIApplication sharedApplication] valueForKey:@"statusBarWindow"]; | |
for (UIView *i in subViewWindow.subviews) { | |
if ([i isKindOfClass:NSClassFromString(@"UIStatusBar")]) { | |
return i; | |
} | |
} | |
return nil; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment