hugosslade

Untitled

Oct 3rd, 2013
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. if ([self respondsToSelector:@selector(setNeedsStatusBarAppearanceUpdate)]) {
  2. // iOS 7
  3. [self prefersStatusBarHidden];
  4. [self performSelector:@selector(setNeedsStatusBarAppearanceUpdate)];
  5. } else {
  6. // iOS 6
  7. [[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationNone];
  8. }
Advertisement
Add Comment
Please, Sign In to add comment