views:

54

answers:

1

I have table of 15 rows, when i click a button on toolbar i need to apply the checkmarks on all the 15cells at a time. Can somebody help i need it urgently.....

+2  A: 

This is very similar to my response to one of your past questions:

for (i = 0; i < [tableView numberOfSections]; i++) {
    for (j = 0; j < [tableView numberOfRowsInSection:i]; j++) {
         indexPath.row = j;
         indexPath.section = i;
         // set checkmark.
    }
}

Alternatively, you can set a check n the data model and then reload the UITableView to display the data along with the checkmark.

mahboudz