Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ([self respondsToSelector:@selector(setNeedsStatusBarAppearanceUpdate)]) {
- // iOS 7
- [self prefersStatusBarHidden];
- [self performSelector:@selector(setNeedsStatusBarAppearanceUpdate)];
- } else {
- // iOS 6
- [[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationNone];
- }
Advertisement
Add Comment
Please, Sign In to add comment