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

1、若用方法:

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

//    return NO;

//}

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

2、

设置cell的选中样式:

Cell.selectionStyle = UITableViewCellSelectionStyleNone;

即可。

posted @ 2016-07-25 17:45  乔胖胖  阅读(1470)  评论(0编辑  收藏  举报