且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

ios7 UINavigationBar setTitleTextAttributes崩溃应用程序

更新时间:2023-02-03 09:43:07

我猜猜MY_FONT_HERE是一个字符串值,它应该是UIFont。不是将字符串传递给属性,而是使用 [UIFont fontWithName:MY_FONT_HERE] 初始化字体。

I'm guessing that MY_FONT_HERE is a string value, when it should be a UIFont. Instead of passing in the string to the attributes, initialize the font with [UIFont fontWithName:MY_FONT_HERE].