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.


Ribbit: Remove Current User from edit list

Hello everyone. I want to select my friends from my edit friends list. I have the list of my friends but my name appear between them. So, I want to remove my name of the edit friend list. How can I do it?

Thanks indeed-

3 Answers

Add the following line to the viewDidLoad :

[query whereKey:@"username" notEqualTo:self.currentUser.username];

and move the line

self.currentUser = [PFUser currentUser];

from the end to the beginning of the method, and after [super viewDidLoad]

Thank you, Ezequiel for your help. It was good. Muchas gracias por todo Que tengas un buen dia.

De nada ;) Have a nice day