- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell *oneCell=[tableView cellForRowAtIndexPath:indexPath];
[oneCell setAccessoryType:oneCell.accessoryType==UITableViewCellAccessoryCheckmark?UITableViewCellAccessoryNone:UITableViewCellAccessoryCheckmark];
[tableView deselectRowAtIndexPath:indexPath animated:YES];
}
转载于:https://www.cnblogs.com/tanwen1989/p/3600177.html