How to programmatically get a tableview out of edit mode

Discussion in 'iOS Programming' started by beachdog, Nov 11, 2008.

  1. beachdog
    Expand Collapse
    macrumors member

    Joined:
    Aug 10, 2008
    #1
    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?
     
  2. fenrus110
    Expand Collapse
    macrumors regular

    Joined:
    Mar 24, 2008
  3. Niiro13
    Expand Collapse
    macrumors 68000

    Joined:
    Feb 12, 2008
    Location:
    Illinois
    #3
    I like:

    Code:
    [self.tableView setEditing:NO animated:YES];
    :p
     
  4. beachdog
    Expand Collapse
    thread starter macrumors member

    Joined:
    Aug 10, 2008

Share This Page