I have 2 classes, ClassA and ClassB
ClassA calls ClassB's method : - (void)someMethod:(id)sender
in the above method, I need to grab the sender from ClassB (the sender is a subclass of UIView that has a UIButton on it) and update the button image using something along the lines of [sender updateButtonImageWithImage:image]
(the UIView subclass has the method: - (void)updateButtonImageWithImage:(UIImage *) )
but whenever I call this from ClassB the app crashes with [UIButton updateButtonImageWithImage:] unrecognized selector blah blah blah.
what am I doing wrong?