-didSelectRowAtIndexPath: not being called

Matt Pfefferle picture Matt Pfefferle · Nov 1, 2008 · Viewed 212.3k times · Source

I'm writing an iOS 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?

Answer

CGee picture CGee · Sep 25, 2012

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

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 ...