iOS 隐藏状态栏

info.plist -- 添加 View controller - based status bar appearance    NO

在对应的controller 中添加

[[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:UIStatusBarAnimationNone];

[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationNone];

控制状态栏显示和隐藏

你可能感兴趣的:(iOS 隐藏状态栏)