美文网首页
tabbar 设置选中文字的颜色

tabbar 设置选中文字的颜色

作者: 名a字太难搞了 | 来源:发表于2018-01-30 18:18 被阅读48次

NSMutableDictionary *textAttrs = [NSMutableDictionary dictionary];

        textAttrs[NSForegroundColorAttributeName] =COLOR(102, 102, 102, 1);

        NSMutableDictionary *selectTextAttrs = [NSMutableDictionary dictionary];

        selectTextAttrs[NSForegroundColorAttributeName] = COLOR(255, 18, 69, 1);;

        [navigation.tabBarItem setTitleTextAttributes:textAttrs forState:UIControlStateNormal];

        [navigation.tabBarItem setTitleTextAttributes:selectTextAttrs forState:UIControlStateSelected];

相关文章

网友评论

      本文标题:tabbar 设置选中文字的颜色

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