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 Blog Reader iPhone App Viewing a Web Page Opening a Web Page in Safari

Missing method

So the method didSelectRowAtIndexPath is not in the newer version of Xcode. I wonder if I should create that method, or there is another default method that I can use.

2 Answers

Stone Preston
Stone Preston
42,016 Points

yes you need to implement that method yourself. In previous versions of xcode it was generated automatically for you by xcode for tableView controllers. That is not the case in xcode 5. you can implement it yourself by typing

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {

}

in your implementation file. then just fill that in with whatever the instructor puts there

Thank you!

Stone Preston
Stone Preston
42,016 Points

also, when you start typing the method xcodes intellisense will bring up some possible options for you to pick so you dont have to type the whole thing out. Be sure you pick didSelectRowAtIndexPath and not didDeselectRowAtIndexPath