- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
NSArray *array = [tableView visibleCells];
for (UITableViewCell *cell in array) {
// 不打对勾
[cell setAccessoryType:UITableViewCellAccessoryNone];
}
UITableViewCell *cell=[_tableView cellForRowAtIndexPath:indexPath];
// 打对勾
[cell setAccessoryType:UITableViewCellAccessoryCheckmark];
}