I have a weird problem. I have a tableviewcontroller subclass viewcontroller.
@interface TestViewController : UITableViewController<UISearchDisplayDelegate, UISearchBarDelegate>
@end
When I swipe on a table cell
-(void)tableView:(UITableView*)tableView willBeginEditingRowAtIndexPath:(NSIndexPath *)indexPath
is fired with a delete button on the right of the cell, and when i click delete, the cell does go away, but the method
- (void)tableView:(UITableView *)tv commitEditingStyle:(UITableViewCellEditingStyle)editingStyle
forRowAtIndexPath:(NSIndexPath *)indexPath
is never called… I want to do some custom code when delete is called, but I can’t seem to do so… what am i missing?
If the cell goes away, but your code did not make it go away, then some other class is acting as the data source and is implementing
tableView:commitEditingStyle:forRowAtIndexPath:and is making the cell go away – because, do you see, even if the button appears, the cell will not go away by itself.