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
Joseph Smith
Courses Plus Student 1,297 PointsSelf-Destructing App - Not Getting #pragma mark - Table View Delagte
Hello, I am currently working through the iOS project and on the "Adding the Edit Friends Screen" Im not getting the pre-written lines of code commented "#pragma mark - Table View delatge" which is needed. Does anyone know why?
2 Answers
Patrick Serrano
13,834 PointsIt seems that with iOS 7 Apple changed some of the provided code when creating UITableViewControllers. All you need to do is write a pragma mark:
#pragma mark- Table view delegate
and then call the didSelectRowAtIndexpath method:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
Ben Jakuben
Treehouse TeacherWe talk about pragma marks a little bit later in the project, too, so hopefully it will all make sense!