1.首先在plist里面 新增
View controller-based status bar appearance 为NO
2.在具体控制器里面可以调用如下方法改变状态栏颜色
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent animated:YES];
时间: 2024-11-06 13:16:06
1.首先在plist里面 新增
View controller-based status bar appearance 为NO
2.在具体控制器里面可以调用如下方法改变状态栏颜色
[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent animated:YES];