- (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;
}UITableview禁止cell点击选中
最新推荐文章于 2022-10-11 10:00:45 发布
本文提供了一个使用Objective-C为UITableView创建自定义InspectorWorkCell的示例代码。该示例展示了如何设置delegate、index及model属性,并禁用cell的点击选中效果。
3577

被折叠的 条评论
为什么被折叠?



