ios - Masked image's Background color -


i have used following code masking

imgmask = uiimageview(image: image) imgimage.mask = imgmask 

now, want change background color yellow, this:

example

how can achieve this?

let templateimage = originalimage.imagewithrenderingmode(uiimagerenderingmodealwaystemplate) myimageview.image = templateimage myimageview.tintcolor = uicolor.orangecolor() 

Comments

Popular posts from this blog

sql - Time in datatime field -

javascript - How to split the success output from an Ajax post? -

java - sharing object across different classes -