Select the whole UIButton, not just the image on the left side?
2 answers
I had the same problem. A workaround is to change the title color for the selected state.
Two solutions:
1 / In the interface builder:
-
property in your UIButton property configuration condition ", select the" selected "
-
Change the text color property to the highlighted color you want.
2 / Programmatically:
Same ideas as above in Swift 3 :
button.setTitleColor(.black, for: .highlighted)
0
source to share