2014 .04 .06 navbar

    for (UIBarItem *item in self.tabBarController.tabBar.items) {

        [item setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:

                                      [UIFont fontWithName:@"Helvetica" size:16.0],NSFontAttributeName, nil]

                            forState:UIControlStateNormal];

 

 

或者(号)

//设置字体的样式
NSMutableDictionary *textAttrib = [NSMutableDictionary dictionary];
textAttrib[NSForegroundColorAttributeName] = [UIColor lightGrayColor];//tabbar 底部颜色gzz0406
Fighting 11:37:35
[vc.tabBarItem setTitleTextAttributes:textAttrib forState:UIControlStateNormal];

    }

posted @ 2016-04-06 16:05  zhen_zhen  阅读(96)  评论(0编辑  收藏  举报