简体   繁体   中英

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. But no the didSelect . Any suggestions?

Well, sometimes the problem is a confusion between didSelect to didDeselect . Change your method to

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

Long shot, might work. Good luck!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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