先來(lái)張圖:

E5F91BC9-5574-46B1-B165-CF9B1FB4BB1E.png
關(guān)注點(diǎn):
[UICTFont intValue]
查找所有的有關(guān)UIFont的方法,最終在
[bar setTitleTextAttributes:@{
NSForegroundColorAttributeName : [UIColor whiteColor],
NSFontAttributeName : [UIFont systemFontOfSize:kFontSize]
}];
NSFontAttributeName 換成了NSAttributedStringKey,既然是font的大小,你肯定得對(duì)應(yīng)上"NSFontAttributeName"
看到這,心頭一萬(wàn)頭烏鴉掠過(guò)?。。。?!
前任,如果大街上遇到你,你別跑!!!!!!