@implementation UIImageView (Utils) - (void)setImageRenderingMode:(UIImageRenderingMode)mode { if (self.image) { UIImage* newImage = [self.image imageWithRenderingMode:mode]; [self setImage:newImage]; } } - (void)fillWithColor:(UIColor*)color { [self setImageRenderingMode:UIImageRenderingModeAlwaysTemplate]; self.tintColor = color; } @end