On UIButton, I set a background image like this
[twitterButton setBackgroundImage:twitterImage forState:UIControlStateNormal]
twitterImage is of type UIImage
Now somewhere in the code on any button I clicked, I set the twitterButton image using the tag value
[twitterButton setBackgroundImage:twitterImage1 forState:UIControlStateNormal]
My problem: how would I compare the twitterButton image?
this condition does not work if([twitterbutton.imageView.image isEqual:twitterImage1])
Please, help
Tariq
source share