PDA

View Full Version : How do you make the "Edit" button actually work on TableViews?




ethana
Aug 11, 2008, 06:49 PM
So I added the Edit button for my TableView using the following:

self.navigationItem.rightBarButtonItem = self.editButtonItem

When I press the button the little minus signs appear, but they don't exactly function. How I can call or tragger an actual function when the minus sign is touched?

E



kainjow
Aug 11, 2008, 08:30 PM
Implement tableView:commitEditingStyle:forRowAtIndexPath:

ethana
Aug 11, 2008, 08:49 PM
Thanks