I have an iPhone UIButton (Custom) which has a background image and text.
When touched, the image darkens (Good) but the text goes from the set Black to white.
How do I keep the text the same black so that when the button is touched, only the image changes color.
Most of the times, the following line will do:
If nothing happens, then use either this:
Or this will do the trick:
See comments below for reason this answer was edited/expanded to include the 2 separate lines.