Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial

Jason Brown
3,379 Pointsios bug can't access the first cell in tableview
I’m done building the Self Destructing Messaging app (Yea!), but I have a bug (boo!) that I can’t figure out.
If you have only 1 message in the inbox, you can tap it and it is highlighted, but it won’t open.
If you have 2 or more messages in the inbox and you click on only one cell, it won’t open, but if you click on two cells (they both highlight) and then one message opens.
Here are screenshots of the bug in action:
Any help is greatly appreciated!
1 Answer

Alex Cevallos
16,551 PointsHey your method.. -(void)tableView:(UITableView *)tableView didDeselectRowAtIndexPath:(NSIndexPath *)indexPath {
Any chance it is actually meant to be "didSelectRowAtIndexPath" instead ?

Jason Brown
3,379 PointsNice work Alex! I can't believe I couldn't find that. I really appreciate the help.
Problem solved.

Alex Cevallos
16,551 PointsNo problem jason! Happy to help! Best of luck in your studies!

Stephen Whitfield
16,771 PointsVery common error. I think we've all done it once, but you know in the future not to do it again, so be happy you made the mistake!
Jason Brown
3,379 PointsJason Brown
3,379 PointsHere is my code for InboxTableViewController: