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!
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
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?
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