我有一个错误。“UISwipeGestureRecognizer 没有可见界面声明选择器'touchesMoved:withEvent:'”
我查看了文档并在 UIGestureRecognizer 类中找到了 touchesMoved:withEvent。我该如何解决这个错误?
@interface MySwipeRecognizer : UISwipeGestureRecognizer
@implementation MySwipeRecognizer
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
{
[super touchesMoved:touches withEvent:event];
}
@end