参考:https://my.oschina.net/u/2299977/blog/386251
//UITabBar设置未选中图片 [yourTabBarItem setImage:[[UIImage imageNamed:@"more.png"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]]; //UITabBar设置选中图片 [yourTabBarItem setSelectedImage:[[UIImage imageNamed:@"more.png"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]];
//设置未选中字体颜色 [[UITabBarItem appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:UIColorFromRGB(0x003500), NSForegroundColorAttributeName, nil] forState:UIControlStateNormal]; //设置选中字体颜色 [[UITabBarItem appearance] setTitleTextAttributes: [NSDictionary dictionaryWithObjectsAndKeys: UIColorFromRGB(0xff3500), NSForegroundColorAttributeName, nil] forState:UIControlStateSelected];