美文网首页
tabbar文字字体颜色修改问题

tabbar文字字体颜色修改问题

作者: H_A_N | 来源:发表于2017-09-16 16:08 被阅读0次
    for (UIBarItem *item in self.tabBar.items) {
            [item setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:
                                          [UIFont fontWithName:@"Helvetica" size:13.0], NSFontAttributeName,RGB(41, 41, 41),NSForegroundColorAttributeName, nil]
                                forState:UIControlStateNormal];
            [item setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:
                                          [UIFont fontWithName:@"Helvetica" size:13.0], NSFontAttributeName,RGB(249, 28, 88),NSForegroundColorAttributeName, nil]
                                forState:UIControlStateSelected];
            
        }
    

    相关文章

      网友评论

          本文标题:tabbar文字字体颜色修改问题

          本文链接:https://www.haomeiwen.com/subject/satusxtx.html