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

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