samedi 31 janvier 2015

iOS: How to check what the button background image is?

I am trying the following method ,but it isn't work. Is there a way I can check what my current background image is for my UIButton and compare it?



UIImage *buttonCheckImage = checkButton.currentBackgroundImage;
UIImage *checkImage = [UIImage imageNamed:@"checkBox.png"];

if (buttonCheckImage == checkImage) {

}



Aucun commentaire:

Enregistrer un commentaire