IOS 自定义TabBar选中时为蓝色解决方法
- (id) initWithTitle:(NSString *)title image:(UIImage *)image selectedImage:(UIImage *)selectedImage
使用该方法设置会图片选中时会变成蓝色的。
如果不希望成为蓝色需改变图片的属性为UIImageRenderingModeAlwaysOriginal
具体代码如下
[self setImage:[image imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]];
[self setSelectedImage:[selectedImage imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]];