在创建App的时候,状态栏的文字颜色默认为黑色。
当需要改变为白色时,
需要在plist文件中添加两个新的键值对(少一个都不行):
View controller-based status bar appearance 设为No,
Status bar style选择Opaque black style,
或者在Target ->General ->Deployment Info -> Status Bar Style 选择light,
这样plist文件中的Status bar style的值自动变为UIStatusBarStyleLightContent,
这样状态栏的文字颜色就变为白色的了。