views:

621

answers:

1

Hi, I have a customized UITableCell, and want to enable the swipe function to show delete button, how to do it?

Thanks

+1  A: 

To make swipe-to-delete work you need to implement these three methods:

tableView:commitEditingStyle:forRowAtIndexPath:
tableView:canEditRowAtIndexPath:
tableView:editingStyleForRowAtIndexPath:
luvieere