简体   繁体   English

tableView didSelectCell不起作用

[英]tableView didSelectCell does not work

No matter what i am trying, it's just dose't call it. 不管我在尝试什么,都只是称呼它而已。 I have set up all the delegation from storyboard, numerOfItemInSection and cellForRowAtIndexPath is getting called as well. 我已经从情节numerOfItemInSection设置了所有delegationnumerOfItemInSectioncellForRowAtIndexPath也被调用。 But no the didSelect . 但是没有didSelect Any suggestions? 有什么建议么?

Well, sometimes the problem is a confusion between didSelect to didDeselect . 好吧,有时候问题出在didSelectdidDeselect之间。 Change your method to 将方法更改为

func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
        <#code#>
    }

Long shot, might work. 远射,可能会起作用。 Good luck! 祝好运!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM