UITableView Editing Question...

Discussion in 'iOS Programming' started by ppilone, Jul 31, 2008.

  1. ppilone macrumors 6502

    Jan 20, 2008
    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.

    - (void)setEditing:(BOOL)editing animated:(BOOL)animated 
    	[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. admanimal macrumors 68040

    Apr 22, 2005
    newWorkoutTableView.allowsSelectionDuringEditing = YES

Share This Page