tabbar(非自定义) 文字的颜色
[NSDictionary dictionaryWithObjectsAndKeys: [UIColor redColor], UITextAttributeTextColor, [UIFont fontWithName:@"Arial" size:0.0], UITextAttributeFont, nil] forState:UIControlStateSelected]; [[UITabBarItem appearance] setTitleTextAttributes: [NSDictionary dictionaryWithObjectsAndKeys: [UIColor blackColor], UITextAttributeTextColor, [UIFont fontWithName:@"Arial" size:0.0], UITextAttributeFont, nil] forState:UIControlStateNormal];
渲染颜色
self.tabBar.selectedImageTintColor = [UIColor yellowColor]; self.tabBar.tintColor = [UIColor yellowColor];
self.tabBar.barTintColor = YWGlobalBG; //tabbar背景颜色