我从服务器接收图像,然后根据用户 Select 的 colored颜色 ,图像 colored颜色 将发生变化.
我try 了以下方法:
_sketchImageView.image = [_sketchImageView.image imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
[_sketchImageView setTintColor:color];
我得到了与我的目标相反的结果(UIImage外部的白色是用所选的 colored颜色 着色的).
出什么事了?
在这个问题上我也需要这样做,提供的解决方案不能解决我的问题.