ios - Change Face Color From main color in xcode -


i work on application in ios , need tool or code change face color of image .

i face in uiimage.

now how apply rgb color change uiimage of face?

thanks in advance

enter image description here

you can this,

  uiimageview *imageview = [[uiimageview alloc]initwithframe:cgrectmake(50, 50, 50, 50)];  imageview.image = [uiimage imagenamed:@"synch"];  // face image here imageview.image = [imageview.image imagewithrenderingmode:uiimagerenderingmodealwaystemplate];  // imageview.backgroundcolor = [uicolor yellowcolor]; imageview.tintcolor = [uicolor redcolor]; // set different tint color here , image color  [self.view addsubview:imageview]; 

image should png file. synch image in png format in example.

hope :)


Comments

Popular posts from this blog

ruby on rails - Permission denied @ sys_fail2 - (D:/RoR/projects/grp/public/uploads/ -

c++ - nodejs socket.io closes connection before upgrading to websocket -

java - What is the equivalent of @Value in CDI world? -