tableview选择的时候不要cell的高亮显示样式

1、若用方法:

//-(BOOL)tableView:(UITableView *)tableView shouldHighlightRowAtIndexPath:(NSIndexPath *)indexPath{

//    return NO;

//}

会导致,tableview都不能相应cell的点击事件了

2、

设置cell的选中样式:

Cell.selectionStyle = UITableViewCellSelectionStyleNone;

即可。

原文地址:https://www.cnblogs.com/Jordandan/p/5704397.html