I noticed that when I place a white or black UIImage
into a UISegmentedControl
it automatically color masks it to match the tint of the segmented control. I thought this was really cool, and was wondering if I could do this elsewhere as well. For example, I have a bunch of buttons that have a uniform shape but varied colors. Instead of making a PNG for each button, could I somehow use this color masking to use the same image for all of them but then set a tint color or something to change their actual color?
vendredi 8 juillet 2016
Color Tint UIButton Image
Inscription à :
Publier les commentaires (Atom)
Aucun commentaire:
Enregistrer un commentaire