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 Removing Friends by Tapping on a Table View Cell

Why do we need to remove friend from NSMutable Array property? (Stage 3 - Relating Users in Parse.com 3:29 in)

We did three things when we were trying to remove the friend:

  1. remove the checkmark

  2. remove friend object from the array of friends

  3. remove from the back end

I don't get why do we need to do step 2, I actually commented out the code implemented for step 2, and everything still works.

The reason for us to create the NSMutable Array property friends in EditFriendViewController was to catch / hold the data pass from FriendViewController when it did the prepareForSegue, that's it, why do we still need to manipulate the friends array in EditFriendViewController?

1 Answer

Tylr, here is a full template for the social network application: Click Here.