方法一:
cell.userInteractionEnabled?=NO;
方法二:
_tableView.allowsSelection=NO;
方法三:
1、cell.selectionStyle?=UITableViewCellSelectionStyleNone;
2、didSelectRowAtIndexPath中不實現(xiàn)點擊動作。
注意:如果cell上有添加Button,方法一和方法二Button的點擊動作也會被忽略掉,方法三可以避免這個問題。
方法一:
cell.userInteractionEnabled?=NO;
方法二:
_tableView.allowsSelection=NO;
方法三:
1、cell.selectionStyle?=UITableViewCellSelectionStyleNone;
2、didSelectRowAtIndexPath中不實現(xiàn)點擊動作。
注意:如果cell上有添加Button,方法一和方法二Button的點擊動作也會被忽略掉,方法三可以避免這個問題。