How to programmatically get a tableview out of edit mode

Discussion in 'iPhone/iPad Programming' started by beachdog, Nov 11, 2008.

  1. 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. macrumors regular

    Joined:
    Mar 24, 2008
    #2
    i think it is self.editing = NO;
     
  3. macrumors 68000

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

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

    Joined:
    Aug 10, 2008
    #4
    That worked, thanks!
     

Share This Page