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 Build a Self-Destructing Message iPhone App Relating Users in Parse.com Displaying Our List of Friends

Brian Wright
Brian Wright
2,587 Points

Error in Code.

When querying the objects for the friendsRelation property you used this line of code:

self.friendsRelation = [[PFUser currentUser] objectForKey:@"friendsRelation"];

This returned null for me, so I visited the Parse.com API reference and found I should have been using:

self.friendsRelation = [[PFUser currentUser] relationForKey:@"friendsRelation"];

It's going to be hard to update the video, but I thought I would point this out.

/cc Ben Jakuben

1 Answer

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

Good catch! That is a bummer. I'll add notes to the video for the time being.