📜  swift 导航栏标题字体 - Swift 代码示例

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

代码示例1
// Place this in your didFinishLaunchingWithOptions method in the AppDelegate
let attrs = [
  NSAttributedString.Key.font: UIFont(name: "Futura-Bold", size: 17)!
]

UINavigationBar.appearance().titleTextAttributes = attrs