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

Jared Galanis
Jared Galanis
8,382 Points

Build a Self-Destructing Message iPhone App - friends not updating

I have completed the first 3 achievements in this project but my friends view controller is not updating when I add or remove friends in the edit view controller. Parse is updating just fine. The edit view controller updates when I'm in it. But when I move back to friends or again back into edit friends the friends list reverts to what it was before making any previous edits. The only way to get it to update is to rebuild the app, then it reflects the correctly updated data that was sent to Parse. Any thoughts or is anyone having the same issue?

2 Answers

Stone Preston
Stone Preston
42,016 Points

its because you have your query and table view reload in your viewDidLoad method. Later in the project you will put it in viewDidAppear. You can fix it now and implement viewDiDAppear and put the logic in that method, or just wait until ben walks you through doing that later in the project