我使用http://www.raywenderlich.com/21842/how-to-make-a-gesture-driven-to-do-list-app-part-13向我的单元格添加手势识别器,这样我就可以将它们从左向右移动,但我收到此错误:
[UISwipeGestureRecognizer translationInView:]: unrecognized selector
我什至不使用滑动识别器,所以我现在不知道该怎么做。
UIGestureRecognizer* recognizer = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(handlePan:)];
recognizer.delegate = self;
[self addGestureRecognizer:recognizer];
谢谢!