1.在plist文件中添加
View controller-based status bar appearance 字段 设为NO;
[UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleLightContent;