1、首先需要再info.plist中添加一项View controller-based status bar appearance为no

iOS  状态栏设置为白色

2、在需要的地方添加代码

   [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];

这样就可以了。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-09-08
  • 2021-11-17
  • 2022-12-23
  • 2021-06-27
  • 2021-12-17
猜你喜欢
  • 2021-05-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案