iOS10之前
vc.tabBarItem.image = [vc.tabBarItem.image imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
iOS10之后
[[CBBaseTabBar appearance] setUnselectedItemTintColor:[UIColor yellowColor]];
选中颜色
[[UITabBar appearance] setTintColor:kColorTheme];
阴影线颜色
[[UITabBar appearance] setShadowImage:[UIImage imageNamed:@"nil"]];
Tabbar背景颜色
[[UITabBar appearance] setBarTintColor:UIColorFromRGBA(0x111321, 1)];
网友评论