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


/ Published in: Objective C
Save to your folder(s)



Copy this code and paste it in your HTML
  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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.