Is it possible to disable the ‘swipe-to-delete’ gesture for a row/cell in a tableView? If so, how do you do it? The cell should still be editable in EDIT mode, but the swipe-to-delete gesture should be disabled.
Is it possible to disable the ‘swipe-to-delete’ gesture for a row/cell in a tableView?
Share
Here’s what to do:
You still need
tableView:commitEditingStyle:forRowAtIndexPath:to animate the deletion.This is a much cleaner solution than iBrad Apps’ solution, since you can use the default
self.editButtonIteminstead of a custom button.Link: UITableView disable swipe to delete, but still have delete in Edit mode?