我知道如何给UIImage
着色:
UIImage* originalImage = curiv.image;
UIImage* imageForRendering = [originalImage imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
curiv.image = imageForRendering;
curiv.tintColor = [UIColor RedColor];
但是如何将带色调的
UIImage
还原为原始图像呢?
UIImage
着色为红色之前保存其tintcolor
,现在如果你想要取消着色,则设置之前保存的tintcolor
。如果不是这种情况,请提供更多代码以获取详细信息。 - Viral SavajUIImage
的tintColor
?这是我关于tintColor
的代码。 - sooon