Posted By

BenClayton on 09/16/10


Tagged


Versions (?)

Who likes this?

6 people have marked this snippet as a favorite

shalomfriss
umang_nine
bobbym245
sb
cnathan
Rakesh


iPhone: Hide status bar (safe for 3.1, 3.2, and 4.0)


 / Published in: Objective C
 

  1. // setStatusBarHidden only on 3.2 and above.
  2. if([[UIApplication sharedApplication] respondsToSelector:@selector(setStatusBarHidden: withAnimation:)]) {
  3. [[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:UIStatusBarAnimationFade];
  4. } else {
  5. [[UIApplication sharedApplication] setStatusBarHidden:NO animated:YES];
  6. }

Report this snippet  

You need to login to post a comment.