释放双眼,带上耳机,听听看~!
先来张图:

关注点:
[UICTFont intValue]
查找所有的有关UIFont的方法,最终在
[bar setTitleTextAttributes:@{
NSForegroundColorAttributeName : [UIColor whiteColor],
NSFontAttributeName : [UIFont systemFontOfSize:kFontSize]
}];
NSFontAttributeName 换成了NSAttributedStringKey,既然是font的大小,你肯定得对应上"NSFontAttributeName"