I have a class ParentViewController that implements a UITapGestureRecognizer with the target method being called tap. I am trying to override this method in a subclass ChildViewController as follows:
- (void) tap:(UITapGestureRecognizer *)sender
{
[super tap:sender];
}
It works fine, but I’m getting the warning:
'ChildViewController' may not respond to 'tap:'
In the past when I’ve overridden a delegate method I haven’t really had any trouble like this. What am I missing here?
Make sure
-(void) tap:(UITapGestureRecognizer *)senderis defined in ParentViewController.h