给tableviewcell加“勾选”
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell *oneCell=[tableView cellForRowAtIndexPath:indexPath];
[oneCell setAccessoryType:oneCell.accessoryType==UITableViewCellAccessoryCheckmark?UITableViewCellAccessoryNone:UITableViewCellAccessoryCheckmark];
[tableView deselectRowAtIndexPath:indexPath animated:YES];
}
浙公网安备 33010602011771号