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

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