先去 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];swift