或者在plist文件里添加 View controller-based status bar appearance == NO 必须要是NO
然后你写更改状态栏颜色的方法就有效果了
在
AppDelegate文件中 写这句话 [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleLightContent;