先去 Info.plist 里面,把 UIViewControllerBasedStatusBarAppearance 设置为 NO. 在你想要改变状态栏的地方写下这个 swift: UIApplication.sharedApplication().setStatusBarStyle(UIStatusBarStyle.Default, animated: true) 或 UIApplication.sharedApplication().setStatusBarStyle(UIStatusBarStyle.LightContent, animated: true) OC: [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent animated:YES];