1:在plist文件中将 View controller-based status bar appearance 设置为NO
2appdelegate里添加两行代码“
[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationNone];
[[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:UIStatusBarAnimationNone];
ok 搞定~