logo
  • 教程列表
  • SO官方文档
  • 更改状态栏颜色
    • 对于非 UINavigationBar 状态栏
    • 对于 UINavigationBar 状态栏
    • 如果你无法更改 ViewControllers 代码
    • 对于 ViewController 包含
    • 更改整个应用程序的状态栏样式
  1. StackOverflow 文档
  2. iOS 教程
  3. 更改状态栏颜色
  4. 如果你无法更改 ViewControllers 代码

如果你无法更改 ViewControllers 代码

Created: November-22, 2018

如果你使用包含(例如)具有错误状态栏颜色的 AwesomeViewController 的库,你可以尝试这样做:

  let awesomeViewController = AwesomeViewController()
  awesomeViewController.navigationBar.barStyle = .blackTranslucent // or other style
  • 对于 ViewController 包含
  • 对于 UINavigationBar 状态栏

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明