View Full Version : How to programmatically get a tableview out of edit mode

Nov 11, 2008, 10:35 AM
I have a tableview controller which responds to the Edit button on my nav controller by setting up the ability to select multiple cells and then act on them (delete, move) etc. This is similar to how the email app works, as an example. What I want to do, is that after the user performs the operation -- say, deleting three cells -- I want to automatically end edit mode. That is, I don't want the user to have to click the Done button, I want it to automatically happen. Not sure how to do this, any help?

Nov 11, 2008, 03:53 PM
i think it is self.editing = NO;

Nov 11, 2008, 04:30 PM
I like:

[self.tableView setEditing:NO animated:YES];

Nov 12, 2008, 11:25 AM
That worked, thanks!