方法1:
[[uiapplication sharedapplication] setStatusBarHidden:NO withAnimation:UIStatusBarAnimationNone];
方法2:
UIView *proxyView = [[uiview alloc] initWithFrame:self.view.frame];
proxyView.hidden=YES;
proxyView.autoresizingMask= self.view.autoresizingMask;
[self.view.superview addsubview:proxyview];
[self.view.window addsubview:self.view];
self.view.frame = [self.view.window convertrect:self.view.frame fromview:proxyview.superview];
[uiview animatewithduration:0.2
animations:^{
self.view.frame=self.view.window.bounds;
}];
[[uiapplication sharedapplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationFade];