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 trialJack Campbell
1,822 PointsCan someone please help?
Ok so the video doesn't cover how they got this code so I just watched how they did it. But when I copied it down 7 errors came up. This is the code in EditFriendsTabView.m
PFUser *user = [self.allUsers objectAtIndex:indexPath.row];
return cell;
}
#pragma mark - Table view delegate
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
@end
Can someone please tell me why I am getting errors?
2 Answers
Ben Jakuben
Treehouse TeacherHi Jack,
Looks like your curly braces got messed up for didSelectRowAtIndexPath
. You only have an opening brace, but it's two lines below, which looks okay at first glance.
Stephen Whitfield
16,771 PointsYou should probably reformat your code example to follow the syntax guidelines noted in the Markdown Cheatsheet. Click the link under the comment box and follow the instructions. I can't tell what you're having problems with from the code you've provided.