- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view.
//viewDidload
if ([self respondsToSelector:@selector(setNeedsStatusBarAppearanceUpdate)]) {
// iOS 7
[self prefersStatusBarHidden];
[self performSelector:@selector(setNeedsStatusBarAppearanceUpdate)];
} else {
// iOS 6
[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationSlide];
}
}
// Add this Method
- (BOOL)prefersStatusBarHidden
{
return YES;
}
OR
Status bar is initially hidden
= YESView controller-based status bar appearance
= NO
댓글 없음:
댓글 쓰기