我可以设置所有字体但是当我尝试设置样式时,编译器会解开nil。我正在为iOS 9构建。这些是我尝试过的组合:
UIFont(name: "Chalkboard SE-bold", size: 18)!
UIFont(name: "Chalkboard SE-Bold", size: 18)!
UIFont(name: "Chalkboard SE bold", size: 18)!
UIFont(name: "Chalkboard SE Bold", size: 18)!
答案 0 :(得分:1)
self.navigationController?.navigationBar.titleTextAttributes = [ NSFontAttributeName: UIFont(name: "ChalkboardSE-Bold", size: 18)!]