Well, if you are trying to change the property of a button by sending a message, your selector should have a sender parameter, which is a pointer to the object it calls, which is your button in this case, For example:
- (void)photoClicked:(id)sender { UIImage bg = [sender currentBackgroundImage] }
source share