tabbar

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背景颜色
原文地址:https://www.cnblogs.com/dqxu/p/4095416.html