info.plist -- 添加 View controller - based status bar appearance ? ?NO
在對應(yīng)的controller 中添加
[[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:UIStatusBarAnimationNone];
[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationNone];
控制狀態(tài)欄顯示和隱藏