作者:ccmmm | 来源:互联网 | 2023-10-11 20:40
可以给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;}
}