Join Simon Allardice for an in-depth discussion in this video Creating the project and the data model, part of Core Data for iOS and OS X.
Let's take these core ideas of modeling, saving, fetching, and put them together inside a user interface.…Now first, we are going to do this with iOS.…We will create an app to show a list of courses, showing these in a Table View grouped by author.…I can select each one to show the details of that one, but we also have a view controller…where we can add a New Course to either cancel or save that.…I can select an existing course, make a quick change to some of those terms if I wanted to,…or from that initial list, I can delete one and everything will be persisted to Core Data.…
While this might not look so drastically different from the example I showed with the timestamp,…we are going to do this completely from the ground up.…We are not going to use the Master-Detail project. We are going to do this from an empty iOS project.…So while we will let Xcode provide a little bit of the standard Core Data code to set…up the Managed Object Context, everything else, including the entire user interface…we will do ourselves.…
- Understanding Core Data and object persistence frameworks
- Creating a Core Data project
- Exploring data modeling
- Creating entities, attributes, and relationships
- Creating managed objects
- Fetching in Core Data
- Implementing undo and redo support
- Creating a Core Data Cocoa app without code
- Responding to validation issues
- Converting store types
- Preloading default data
Skill Level Intermediate
Q: In the CoursesViewController.m file, I receive a message that the method dismissModalViewControllerAnimated is no longer supported by Apple. Is there a newer method to use?
A: You may have received the warning that a call to the dismissModalViewControllerAnimated: method is now deprecated.
This is a recently deprecated method, so the code _will_ continue to work using that call, but to remove the warning, change the code from:
to the current recommended version:
[self dismissViewControllerAnimated:YES completion:nil];
It should take care of that message.