【发布时间】:2018-08-01 14:23:54
【问题描述】:
我在 UITableView 中有一个单元格,其中有一个 UITextField,当我点击该单元格时,键盘会弹出。但我想要的是 didSelectRow 函数被调用。
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath)
如果我将 textField isUserInteractionEnabled 设置为 false 但之后 becomeFirstResponder 不再起作用,那么可行。
那么是否有任何属性可以设置,以便只调用 didSelectRowAt 函数。有点像allowSelectionDuringEditing?
【问题讨论】: