I am trying to code a reset button, so that when I click on that button all the tableview cells' accessory type get set to none
.
I have a clear concept of how to do it, but I am pretty new to iPhone development so I just need help with what methods to call.
The steps I think I need to take: I am iterating through all the rows using a for loop - so I am counting the number of cells (successfully done). My problem is, I have no clue how to check for each of those rows/cells if the accessory type is CheckMark and set it to none
.
Alternatively, I can set all of my cells to AccessoryNone
, but I am already doing some calculations inside the:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
So I am not sure how can I achieve this.