我以前http://www.raywenderlich.com/21842/how-to-make-a-gesture-driven-to-do-list-app-part-13的手勢識別添加到我的細胞,使我可以將它們從左至右,但我得到這個錯誤:添加UIGestureRecognizer到一個UITableViewCell
[UISwipeGestureRecognizer translationInView:]: unrecognized selector
我甚至不使用刷卡識別器,所以我不知道現在要做什麼。
UIGestureRecognizer* recognizer = [[UIPanGestureRecognizer alloc] initWithTarget:self action:@selector(handlePan:)];
recognizer.delegate = self;
[self addGestureRecognizer:recognizer];
謝謝!