Reputation: 12345
I am in the tableView
editing mode. I have a checkmark in the left side of the tableView.
- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath{
return UITableViewCellAccessoryCheckmark;
}
My didSelectRowAtIndexPath
is getting called each time I tap on the check mark.
When i uncheck the checkmark (i.e. tap on the cell again) the didSelectRowAtIndexPath
is NOT called again.
Anyone knows solution to this ?
Perhaps another method that gets called each time a check mark is pressed ?
Upvotes: 0
Views: 839
Reputation: 20163
tableview:didSelectRowAtIndexPath:
is only called when a cell is selected. If you want to know when it's deselected, use:
- (void)tableView:(UITableView *)tableView didDeselectRowAtIndexPath:(NSIndexPath *)indexPath
Upvotes: 2