SICT

DPS923 & MAP523

Mobile App Development for iOS

Notes Topics Weekly Resources Graded work Professor Code examples

Core Data table view editing

In our discussion about fetched results controller, we learned that “monitor changes to the data objects, and report on those changes, so that the hosting controller can update the user interface.”

This works like magic. Changes - adds, edits, deletes - are made via the context (and the data store), and the table view is updated, with animation, because its content is managed by the fetched results controller.

Here is a short video clip (which you can view in the Safari browser) that shows this in action:

View this in the Safari browser


Writing your own code

Several design and coding tasks are required, and learning what and why takes several hours. In the past, we have spent hours in class on this topic, and some students have spent hours (or days) implementing the solution.

As a result, we’re not going to do this.


Use the template, Luke

(Inspired by the famous Star Wars movie quote, “Use the Force, Luke”).

Here are the pieces involved. Open and study any project that was generated by TemplateCDv2.


Does this work with…

Does this work with…

Add, using a modal scene?
Yes.

Add, where the data comes from the network or whatever?
Yes.

Edit, using a modal scene?
Yes.