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 Build a Self-Destructing Message iPhone App Relating Users in Parse.com Removing Friends by Tapping on a Table View Cell

Friend lists are not updating

When clicking Back to go to the Friends View from the Edit Friends View, the list of friends in the Friend view is not updated. Similarly, after unchecking a friend in the Edit Friends view, if I go back to the Friends View and then click Edit Friends again, the Edit Friends list does not reflect the change.

4 Answers

Figured it out—this is addressed in a later video. The lists need to be refreshed or required every time the view appears.

Kevin Duck
Kevin Duck
5,502 Points

In what video is this addressed?

Edit: I found the video: http://teamtreehouse.com/library/implementing-designs-for-iphone/implementing-custom-login-and-sign-up-screens/getting-up-to-speed

Looks like you have to put the part that refreshes the table in a method called "viewWillAppear" instead of "viewDidLoad".

it's hard to help when there's no code to look at.

I have the same question at https://teamtreehouse.com/forum/friends-list-not-updating-dynamically. Ben, were you at the end of stage 3 of the app at this point? What's the later video that you are talking about during which this problem is addressed?

http://teamtreehouse.com/library/implementing-designs-for-iphone/implementing-custom-login-and-sign-up-screens/getting-up-to-speed

@treehouse staff: please note this in the class notes—astute students might notice this bug ahead of time

Thanks so much for your help. I was getting worried that I did something wrong and even went back to rewatch the videos a few times over. Didn't realize that the bug was noted in the video notes.

I have the same question at https://teamtreehouse.com/forum/friends-list-not-updating-dynamically. Ben, were you at the end of stage 3 of the app at this point? What's the later video that you are talking about during which this problem is addressed?