Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/118.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 无法获取黑板SE粗体的UIFont_Ios_Uifont - Fatal编程技术网

Ios 无法获取黑板SE粗体的UIFont

Ios 无法获取黑板SE粗体的UIFont,ios,uifont,Ios,Uifont,我可以设置所有字体,但当我尝试设置样式时,编译器会取消设置为零。我正在为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:

我可以设置所有字体,但当我尝试设置样式时,编译器会取消设置为零。我正在为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)!
UINavigationBar.appearance().titleTextAttributes=[NSFontAttributeName:UIFont(名称:“黑板黑体”,大小:18)!]字体名称为“黑板黑体”,与您指定的不同。。您可以在此处检查所有可用的字体名称:UINavigationBar.appearance()。。您可以在此处检查所有可用的字体名称:
self.navigationController?.navigationBar.titleTextAttributes = [ NSFontAttributeName: UIFont(name: "ChalkboardSE-Bold", size: 18)!]