First create a new
Click on the new Testinfo.xcdatamodeld will appear this interface
After creating Testinfo.xcdatamodeld Appdelegate will automatically help you to add support CoreData code interested in your own research
First, use CoreData to store data 1. CREATE TABLE 2. Create Field 3. The model class that created the corresponding field is sufficient.
Create a table click and then appear
Add a field ......... .....
Create a model for the corresponding field command+n
will automatically help you create a class after you hook it up.
Okay, everything's ready. Find a place to test the additions and deletions, write the test code directly in the Appdelegate.
Well above is the simple coredata used for the first time with the novice. This example only tries to get started using
CoreData Introduction Use additions and deletions to change the swift