Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ppilone

macrumors 6502
Original poster
Jan 20, 2008
361
0
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.