UITableview禁止cell点击选中

- (InspectorWorkCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    InspectorWorkCell *cell = [InspectorWorkCell cellWithTableView:tableView];
    cell.delegate = self;
    cell.index = indexPath.row;
    cell.inspectorWorkModel = _data[indexPath.row];
    // 禁止cell点击选中
    cell.selectionStyle = UITableViewCellSelectionStyleNone;
    return cell;
}

你可能感兴趣的:(iOS项目记录)