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 trialCaleb Kleveter
Treehouse Moderator 37,862 PointsWhat are they asking me to do in this code challenge?
"We can create a PFRelation for any kind of PFObjects. Now we want to relate selected videos to a playlist. The view controller has a PFObject property named playlist. In the addVideoToPlaylist method, create a PFRelation variable named relation and set it from the playlist property using the method relationForKey. Use the key "videos"." I'm on step 1
1 Answer
Caleb Kleveter
Treehouse Moderator 37,862 PointsI figured it out, I decide since couldn't find PFRelation or "videos" in the code already in the challenge I wrote:
PFRelation *relation;
[self.playlist relationForKey:@"videos"];
it passed but I got a warning when I tried to pass the second task so I had to change it to:
PFRelation *relation = [self.playlist relationForKey:@"videos"];