-
(void)tableView:(UITableView *)tableView
didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
UITableViewCell *oneCell=[tableView cellForRowAtIndexPath:indexPath];
[oneCell setAccessoryType:oneCell.accessoryType==UITableViewCellAccessoryCheckmark?UITableViewCellAccessoryNone:UITableViewCellAccessoryCheckmark];
[tableView deselectRowAtIndexPath:indexPath animated:YES];
}
给tableviewcell加“勾选”,布布扣,bubuko.com
原文:http://www.cnblogs.com/tanwen1989/p/3600177.html