转载自:http://www.cocoachina.com/applenews/devnews/2013/1104/7287.html
在iOS 7中,通过上面的方法来修改状态栏风格非常的棒。另外,我们也可以使用UIApplication的statusBarStyle方法来设置状态栏,不过,首先需要停止使用View
controller-based status bar appearance。在project target的Info tab中,插入一个新的key,名字为View
controller-based status bar appearance,并将其值设置为NO。