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

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -