1在Info.plist中设置UIViewControllerBasedStatusBarAppearance 为NO2 在须要改变状态栏颜色的ViewController中在ViewDidLoad方法中增长:[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];io
若是须要在所有View中都变色,能够写在父类的相关方法中,或者写到AppDelegate中。sed