【发布时间】:2015-12-02 16:59:34
【问题描述】:
我想将tabBar标题的字体设置为ubuntu,但我无法设置。
我为此编写了以下代码:
self.tabBarController.navigationController.navigationBar.titleTextAttributes =
@{NSForegroundColorAttributeName: [UIColor whiteColor],
NSFontAttributeName:[UIFont fontWithName:@"Ubuntu" size:9.0f]};
【问题讨论】:
-
检查字体是否添加正确,否则尝试添加其他字体并检查一次
-
是的字体添加正确
标签: ios objective-c fonts set tabbar