hello everyone
I only know the first step is to check a row
next I think is use a NSMutableArray to record which row is been checked
and this is my code :
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
if ([[tableView cellForRowAtIndexPath:indexPath] accessoryType] == UITableViewCellAccessoryCheckmark){
[[tableView cellForRowAtIndexPath:indexPath] setAccessoryType:UITableViewCellAccessoryNone];
}
else {
[[tableView cellForRowAtIndexPath:indexPath] setAccessoryType:UITableViewCellAccessoryCheckmark];
}
}
so,my question is
<1>How to put this checked row's indexPath into a Array ?
<2>How to add a delete button that I can delete all the row I selected ?
thanks ,and also thanks the god let the typhoon come to here and give me one more holiday !