Adding Core Data to existing project in XCode 4

前端 未结 6 1325
一向
一向 2021-02-01 17:02

I started off the project without Core Data and now I would like to add that functionality to my apps. How do I do this?

What additional things does XCode sets up when

6条回答
  •  时光取名叫无心
    2021-02-01 17:40

    It's really simple to add Core Data to your project by comparing it with a new project incl. Core Data. You need to add a "Data Model" file and some methods and ivars in the AppDelegate.

    Look at the Core Data Project Template in the implementation file -> "Core Data stack".

提交回复
热议问题