【发布时间】:2013-03-18 03:29:22
【问题描述】:
我有一个来自这个例子的自定义滑动识别类: How to detect a swipe-to-delete gesture in a customized UITableviewCell?
- (void)cellSwiped:(UIGestureRecognizer *)gestureRecognizer {
if (gestureRecognizer.state == UIGestureRecognizerStateEnded) {
UITableViewCell *cell = (UITableViewCell *)gestureRecognizer.view;
NSIndexPath* indexPath = [self.tableView indexPathForCell:cell];
}
}
现在我想在 indexPath 中选择那一行并为其启用编辑模式,有人可以告诉我如何完成吗?
【问题讨论】:
标签: iphone objective-c editmode