tabbar文字字体颜色修改问题

来源:互联网 发布:手机淘宝秒杀需要刷新 编辑:程序博客网 时间:2024/05/14 16:32
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];}
原创粉丝点击