tableView didSelect Cell 不起作用
tableView didSelectCell does not work
无论我在尝试什么,它就是不叫它。我已经设置了情节提要中的所有 delegation
,numerOfItemInSection
和 cellForRowAtIndexPath
也被调用了。但是没有 didSelect
。有什么建议吗?
好吧,有时问题是 didSelect
和 didDeselect
之间的混淆。
将您的方法更改为
func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
<#code#>
}
远景,可能会奏效。祝你好运!
无论我在尝试什么,它就是不叫它。我已经设置了情节提要中的所有 delegation
,numerOfItemInSection
和 cellForRowAtIndexPath
也被调用了。但是没有 didSelect
。有什么建议吗?
好吧,有时问题是 didSelect
和 didDeselect
之间的混淆。
将您的方法更改为
func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
<#code#>
}
远景,可能会奏效。祝你好运!