I have a custom swipe recognition class from this example: 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];
}
}
Now I would like to select that single row at the indexPath and enable edit mode for it, could someone show me how it can be done?