改变图片颜色

UIImage *image=[UIImage imageNamed:@"go-pro"];

image=[image imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];

[goProButton setImage:image forState:UIControlStateNormal];

goProButton.tintColor=[UIColor colorWithRed:252/255.0 green:149/255.0 blue:38/255.0 alpha:1];

你可能感兴趣的:(改变图片颜色)