1.在plist文件中设置如下属性:

iOS 设置状态栏的颜色

 

2.在delegate中设置

[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
    UINavigationBar *bar = [UINavigationBar appearance];
    [bar setBarStyle:UIBarStyleBlackOpaque];

 

相关文章:

  • 2022-12-23
  • 2022-02-09
  • 2021-04-26
  • 2022-02-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-17
  • 2022-12-23
  • 2022-01-20
  • 2021-11-19
  • 2021-11-19
相关资源
相似解决方案