ios7.0在故事板 tab bar 属性设置中设置 image tint颜色值可以实现, ios7.1中该方法不起作用,可以在代码中加入下句实现
[self.tabBarController.tabBarsetSelectedImageTintColor:[UIColor greenColor]];
ios8中如下设置:
self.tabBar.tintColor=[UIColor greenColor];
ios7.0在故事板 tab bar 属性设置中设置 image tint颜色值可以实现, ios7.1中该方法不起作用,可以在代码中加入下句实现
[self.tabBarController.tabBarsetSelectedImageTintColor:[UIColor greenColor]];
ios8中如下设置:
self.tabBar.tintColor=[UIColor greenColor];