2 Replies Latest reply: Jan 16, 2011 8:40 AM by jaikirdatt
jaikirdatt Level 1 Level 1 (0 points)
The documentation says "To enable the swipe-to-delete feature of table views (wherein a user swipes horizontally across a row to display a Delete button), you must implement the tableView:commitEditingStyle:forRowAtIndexPath: method."

I have a UISwitch in the cell's accessory view and the delete selector is invoked when I swipe over the UISwitch control. So, I don't want to implement the swipe-to-delete feature. I want the user to delete the row by clicking the edit and the delete button.

Is there a way to delete items from a table view without implementing tableView:commitEditingStyle:forRowAtIndexPath?

iPhone, iOS 4