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 Build a Self-Destructing Message iPhone App Relating Users in Parse.com Adding Friends by Tapping on a Table View Cell

Tom Schouteden
Tom Schouteden
1,850 Points

didSelectRowAtIndexPath

In a number of videos the use of didSelectRowAtIndexPath is demonstrated. In all these cases this method is already predefined in the newly TableViewController class that is created.

The current version of Xcode however, does not automatically create this method anymore. Does this mean it has been deprecated or replaced by another function? If it's so commonly used I wonder why it's been removed from Xcode as a default method.

2 Answers

Eilon Krauthammer
Eilon Krauthammer
4,768 Points

I don't think they are necessarily so commonly used. I think Apple just wanted to clean the code a little bit and let users add whatever methods they want.

Eilon Krauthammer
Eilon Krauthammer
4,768 Points

These methods still exist, they're just not pre-generated, you have to add them manualy.

Tom Schouteden
Tom Schouteden
1,850 Points

I know, but I was wondering if they're so commonly used, why are they no longer pre-generated. Is there perhaps another preferred way to achieve the same in the latest version of Xcode?