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 trialGeorge S-T
6,624 PointsHelp with Task 3: Code Challenge - Displaying Our List of Friends
I can't seem to find whats wrong with my code.
Here it is, including previous tasks code:
''' PFUser *currentUser = [[PFUser currentUser] objectForKey:@"moviesRelation"];
PFQuery *query = [self.moviesRelation query];
'''
1 Answer
Stone Preston
42,016 Points PFUser *currentUser = [[PFUser currentUser] objectForKey:@"moviesRelation"];
you are supposed to set the PFRelation property you created in the header, not create a new PFUer. You are almost right, instead use
self.moviesRelation = [[PFUser currentUser] objectForKey:@"moviesRelation"];
George S-T
6,624 PointsGeorge S-T
6,624 PointsAlso, I don't understand how to make the code all in one black box... It never seems to work for me.
''' test '''