iOS tabbar文字字体颜色修改问题

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];
}

君凯商联网-iOS-字唐名僧

你可能感兴趣的:(OC篇)