PDA

View Full Version : UITableView Editing Question...




ppilone
Jul 31, 2008, 11:21 PM
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
{
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.



admanimal
Jul 31, 2008, 11:34 PM
newWorkoutTableView.allowsSelectionDuringEditing = YES