Use basic storage data for an existing Iphone project?

According to the Apple Core Data tutorial, to use Core Data, you must:

In the Options section, select the radio button to use master data for storage.

How to do this for an existing project? Do you need to import some files? Can this setting be activated later?

thanks

+4
source share
1 answer

Selecting this option automatically adds CoreData.framework, an empty data model, and some Core Data code to the AppDelegate and View Controllers classes.

If you want to start using CoreData in an existing project,

1) Add the CoreData.framework project to the project.

2) Make a "New file", go to "Resource" and add a new "Data Model" to the project.

3) Create a temporary new project (check the Use data core box). Then you can look and see the code associated with the underlying data that he added to these template files. Carefully merge this material into an existing AppDelegate.

4) You should be prepared to choose a textbook from this point.

+19
source

All Articles