标签: xcode uitableview
从另一个视图控制器,我需要阻止表视图单元格的交互,但仍然允许滚动属性。
我用过:
table.userInteractionEnabled = NO; table.scrollEnabled = YES
但userInteractionEnabled禁用所有操作,包括滚动。
有没有办法从表格属性中做到这一点?
答案 0 :(得分:0)
从属性检查器
选择
以编程方式: -
cell.selectionStyle = UITableViewCellSelectionStyle.None // In CellforRowAtIndexPath