此代码是否有任何错误导致字体无法正确更新?
NSDictionary *attributes = @{ NSForegroundColorAttributeName : [UIColor whiteColor], NSFontAttributeName : [UIFont preferredFontForTextStyle: @"Courier"]};
[[UINavigationBar appearance] setTitleTextAttributes:attributes];
当我运行应用程序时,字体似乎是一些系统字体。 (不是Helvetica neue,但也不是Courier。)