转载自:http://www.linunio.com/tag/uitableviewcellselectionstylenone

全体:

1
2
3
[self.tableView setAllowsSelection:NO];
// 编辑状态
[self.tableView setAllowsSelectionDuringEditing:YES];

cell:

1
[cell setSelectionStyle:UITableViewCellSelectionStyleNone];