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! While you're at it, check out some resources Treehouse students have shared here.

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

iOS

Stuart Harrison
Stuart Harrison
201 Points

Ribbit - didSelectRowAtIndexPath - New code (.m) file missing code?

First, brilliant tutorial!

However, according to the lesson, when I create a new TableViewController file (both .h and .m), the .m should include quote a lot of commented-out code at the bottom. One function missing is the "didSelectRowAtIndexPath".

Not sure if Xcode has been changed, but every time I create a new TVC file, I have to recreate this function. Am I doing something wrong?

Thank you.

1 Answer

kirkbyo
kirkbyo
15,791 Points

You are not doing anything wrong, I was having the same problem. I just copied the code from the video and went from there. I am pretty sure the reason that the code is missing is because Ben is using an older version of Xcode. I hope that answered question. :)

Ozzie

Stuart Harrison
Stuart Harrison
201 Points

Thanks for the answer - was hoping that was the case. :)