📜  快速更改导航栏颜色 - Swift 代码示例

📅  最后修改于: 2022-03-11 15:01:02.759000             🧑  作者: Mango

代码示例2
// Place this in your didFinishLaunchingWithOptions method in the AppDelegate
let attrs = [
  NSAttributedString.Key.foregroundColor: UIColor.white
]

UINavigationBar.appearance().titleTextAttributes = attrs