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 trialmaytelabargamalaga
Courses Plus Student 6,465 PointsRibbit: 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
Ezequiel Amaya
3,094 PointsAdd 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]
maytelabargamalaga
Courses Plus Student 6,465 PointsThank you, Ezequiel for your help. It was good. Muchas gracias por todo Que tengas un buen dia.
Ezequiel Amaya
3,094 PointsDe nada ;) Have a nice day