设置cell的选中属性为如下就没有点击效果了
cell.selectionStyle = UITableViewCellSelectionStyleNone;
只需要在- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
中加入一行代码就可以了[tableView deselectRowAtIndexPath:indexPath animated:YES];
然后再写你其他代码就可以了
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
[tableView deselectRowAtIndexPath:indexPath animated:YES];// 取消选中
//其他代码
}