我知道如何着色的UIImage
:iOS版 - Untint的UIImage
UIImage* originalImage = curiv.image;
UIImage* imageForRendering = [originalImage imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
curiv.image = imageForRendering;
curiv.tintColor = [UIColor RedColor];
但如何untint原始UIImage
?
你可以保存'UIImage'的'tintcolor',然後用紅色對它進行着色,現在你想要不要它,然後設置以前保存的tintcolor。如果情況並非如此,那麼提供更多的細節代碼。 –
@VirusSavaj如何保存'UIImage'的'tintColor'?這是關於'tintColor'的代碼。 – sooon
請看我的回答, –