</pre><pre name="code" class="objc">可以给checkmark添加颜色、cell.tintColor = [UIColo redColor];
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
if (![indexPath isEqual:_lastIndex]) {
UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
cell.accessoryType = UITableViewCellAccessoryCheckmark;
UITableViewCell *lastCell = [tableView cellForRowAtIndexPath:_lastIndex];
lastCell.accessoryType = UITableViewCellAccessoryNone;
_lastIndex = indexPath;
}
}