1.tabbar颜色
[[UITabBar appearance] setBarTintColor:[UIColor whiteColor]];
2.tabbaritem图片无渲染
item.selectedImage = [item.selectedImage imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
3.tabbaritem文字颜色
[[UITabBarItem appearance] setTitleTextAttributes:@{ NSForegroundColorAttributeName:[UIColor whiteColor]} forState:UIControlStateNormal];
网友评论