无法将UIFont用于Chalkboard SE大胆

时间:2016-05-15 18:44:54

标签: ios uifont

我可以设置所有字体但是当我尝试设置样式时,编译器会解开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)!

1 个答案:

答案 0 :(得分:1)

self.navigationController?.navigationBar.titleTextAttributes = [ NSFontAttributeName: UIFont(name: "ChalkboardSE-Bold", size: 18)!]