Lecture 14: Core Data Demo

The attached assignment is due next Wednesday.

Code posted. Added a lot of comments (which hopefully didn't break anything!). If you start at viewWillAppear: in PhotographersTableViewController.m, you'll see that there are comments that are "numbered steps" approximating the flow through the demo. Hopefully that'll help you recreate in your minds the concepts touched upon at each stage of the demo.

Two things were added to the code after lecture: a prepareForSegue:sender: for the ImageViewController transition and also a save of the document where the database is loaded up (not having this would probably work fine because of UIManagedDocument's autosaving, but it's more correct to do this explicit save when we update a Core Data database).

Downloads