I'm trying to create a conditional that asks about the button's image. Here's what I have:
if (buttonName.image == [UIImage imageNamed:@"ButtonImage.png"])
This code works fine if the object buttonName is a UIImageView, but as a UIButton, I get the error 'request for member 'image' in something not a structure or union'.
How can I create this conditional?