Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


Blog Reader - Viewing A Webpage (Code very different to video)

So I am on the first video "Opening a Web Page in Safari" in the "Viewing a Webpage Section" - On the video there is "#pragma mark - Table view delegate" and then a bunch of code underneath it. Why doesn't my app have all of that? Is it because I am on Xcode 5? Or have I done something very wrong ... If its a Xcode version problem, what is the best solution?

2 Answers

Hi Amit Bijlani do you have any suggestions? Sorry to be a pain, but I have just come to a complete stop.

Amit Bijlani
Amit Bijlani
Treehouse Guest Teacher

The Table View Controller template in Xcode 5 leaves out the didSelectRowAtIndexPath method but all you have to do is start typing it and the autocomplete will prompt you with the complete method signature. Keep in mind that the method name is didSelectRowAtIndexPath. Many students end up selecting didDeselectRowAtIndexPath and get unintended consequences.