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 Introduction to Core Data with Swift 2 Deleting and Updating Data Animating Table View Cells

James Estrada
seal-mask
.a{fill-rule:evenodd;}techdegree
James Estrada
Full Stack JavaScript Techdegree Student 25,866 Points

Cell update problems

The functionality of updating a cell is not the same as it used to be by reloading the whole table. For example, if I have the following list: A, B, Z, Z and I want to change the value of the last Z to C, it shows the same list A, B, Z, Z in the Todo List Controller, but if I see the value for the first Z and not the last Z in the Detail View Controller it shows me the C value. It's not until I save the C again that the Todo List Controller gets updated with the edited value and display the correct order A, B, C, Z. Notice that after the first save the list is ordered but in the Detail View Controller, and after the second save the list is ordered in both Detail View Controller and Todo List Controller. What is the reason for updating the table twice to work properly?