UITableView Editing Question...

Discussion in 'iPhone/iPad Programming' started by ppilone, Jul 31, 2008.

  1. macrumors 6502

    Joined:
    Jan 20, 2008
    #1
    Seeing some strange behavior with my table view...

    I have navigation controller with and edit button as the right item. When the table view is not in editing mode everything works fine (the didSelectRowAtIndexPath: delegate method gets called). However, once editing is set to YES (by clicking the edit button) the table correctly displays the editing accessories and works if I click the insert or delete button - but didSelectRowAtIndexPath: never gets called anymore.

    Code:
    - (void)setEditing:(BOOL)editing animated:(BOOL)animated 
    {
        NSLog(@"setEditing:");
    	[super setEditing:editing animated:animated];
    	[newWorkoutTableView setEditing:editing animated:YES];
    }
    
    This is the method that is called when the Edit button is toggled. Any suggestions? I've checked the Apple discussion bored and there is someone else with a similar problem and they have narrowed it down to the super setEditing: call.
     
  2. macrumors 68040

    Joined:
    Apr 22, 2005
    #2
    Code:
    newWorkoutTableView.allowsSelectionDuringEditing = YES
    
     

Share This Page