//宏定义颜色
#define RGB_COLOR(R,G,B) [UIColor colorWithRed:R /255.0 green:G /255.0 blue:B / 255.0 alpha:1.0]
//在设置UITabBarCotroller字体颜色时,如果设置成高亮状态则会出现提醒:
[self.tabBarItem setTitleTextAttributes:@{NSForegroundColorAttributeName:RGB_COLOR(255,40, 73)}forState:UIControlStateHighlighted];
//提醒如下
button text attributes only respected for UIControlStateNormal, UIControlStateSelected, UIControlStateFocused, and UIControlStateDisabled. state = 1 is interpreted as UIControlStateSelected.
//只需要将高亮状态改成选中状态即可去除打印出来的提醒
[self.tabBarItem setTitleTextAttributes:@{NSForegroundColorAttributeName:RGB_COLOR(255,40, 73)}forState:UIControlStateSelected];