Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

iOS

Fabio Floris
Fabio Floris
526 Points

Destructive Message - Friends List

Hello everyone, following the tutorial Destructive Message for Iphone made ??by BEN, I noticed that you explained how you view friends in a total list of users.

In essence, the user can understand who are friends and who is not a total list of users of the app.

Is always used in the tutorial class _USER (with a PFRelation) but I have the need to do the same thing but not with the class _USER but with a different class ..

I followed step by step tutorial using the Query instead of PFRelation but I can not filter out all users friends list ... Can you help?

1 Answer

Ben Jakuben
STAFF
Ben Jakuben
Treehouse Teacher

If I understand, you want to keep track of a PFRelation on a different class in Parse, not PFUser? It works pretty much the same way--you create the PFRelation for whatever PFObject you want, and then you can use that PFRelation to query Parse for results. Once you get the results you should be able to display them in a list in a similar manner. If you can post more details and code then perhaps we can help you go a bit further.