我有一个类ParentViewController实现了一个UITapGestureRecognizer目标方法被调用tap。我正在尝试在子类中覆盖此方法,ChildViewController如下所示:
- (void) tap:(UITapGestureRecognizer *)sender
{
[super tap:sender];
}
它工作正常,但我收到警告:
'ChildViewController' may not respond to 'tap:'
过去,当我重写委托方法时,我真的没有遇到过这样的麻烦。我在这里想念什么?