在ios6或是其之前可使用:
[[UIApplication shareApplication] setStatusBarHidden:YES];
ios6 之后:重写UIViewController的:
- (BOOL) prefersStatusBarHidden{
return YES;
}
就可以了!
在ios6或是其之前可使用:
[[UIApplication shareApplication] setStatusBarHidden:YES];
ios6 之后:重写UIViewController的:
- (BOOL) prefersStatusBarHidden{
return YES;
}
就可以了!