在Info.plist文件中
如果代码设置了[[UIApplicationsharedApplication]setStatusBarStyle:UIStatusBarStyleLightContent];没有效果的话,需要先将Info.plist中的UIViewControllerBasedStatusBarAppearance设为NO。
当UIViewControllerBasedStatusBarAppearance设为YES时,则View Controller对StatusBar的设置优先级高于Application的设置,为NO则以application的设置为准