我有一个带有按钮的单元格,设置UserInteractionEnabled
为false也会禁用该按钮。现在,如果我使用cell.selectionStyle = UITableViewCellSelectionStyle.None
。虽然该单元格未突出显示,但是我松开了先前选择的单元格。有什么办法可以克服吗?
实现UITableView
委托方法
tableView(_ tableView: UITableView, willSelectRowAtIndexPath indexPath: NSIndexPath) -> NSIndexPath?
返回nil
您不希望被选中的行。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句