-didSelectRowAtIndexPath:未被调用 [英] -didSelectRowAtIndexPath: not being called

查看:132
本文介绍了-didSelectRowAtIndexPath:未被调用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在标签视图中编写一个带有表视图的iPhone应用程序。在我的UITableViewController中,我实现了 -tableView:didSelectRowAtIndexPath:,但是当我在运行时选择一行时,该方法没有被调用。表视图正在填充,所以我知道我的控制器中的其他tableView方法正在调用。

I'm writing an iPhone app with a table view inside a tab view. In my UITableViewController, I implemented -tableView:didSelectRowAtIndexPath:, but when I select a row at runtime, the method isn't being called. The table view is being populated though, so I know that other tableView methods in my controller are being called.

有没有人有什么想法,我可能已经搞砸了

Does anyone have any ideas what I may have screwed up to make this happen?

推荐答案

为了防止有人犯了同样的愚蠢错误:

Just in case someone made the same stupid mistake as I did:

检查您期望的 didSelect 的方法名称是否可能意外获取 didDeselect 某种程度上来说。我花了大约两个小时来找出...

Check out if the method name of what you expect of being didSelect may accidentally be gotten didDeselect in some way. It took about two hours for me to find out ...

这篇关于-didSelectRowAtIndexPath:未被调用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆