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

Andrew Butler
Andrew Butler
21,358 Points

Code Challenge: Removing Friends by Tapping on a Table View Cell 3 of 3

When I submit my code for the third code challenge, I get a message saying "Oops! It looks like Task 1 is no longer passing." So I am doing something wrong. Can anyone point me in the right direction?

Thanks in advance

Here is what I submitted that got the message:

- (void)addVideoToPlaylist:(PFObject *)video {
// Add custom code below!
PFRelation *relation = [playlist relationforKey:@"videos"];
[relation addObject:video];
[playlist saveInBackgroundWithBlock];
}

What Project or deep dive is this on?

I just checked it. I'm getting the same thing.

How did you figure this out? I'm stuck!

3 Answers

Amit Bijlani
STAFF
Amit Bijlani
Treehouse Guest Teacher

Since playlist is a property you need to refer to it as self.playlist. And the method to save without using a block is called saveInBackground.

Andrew Butler
Andrew Butler
21,358 Points

I'm asking about the last Code Challenge in the Relating users in Parse.com section in Build a Self-Destructing Message iPhone App

just a quick one, why in this does the relationForKey have a lower case f?