Can CoreData models be exported to use in another app?
Is there any way to export a CoreData model file (i.e entities description: *.xcdatamodeld) to another project. B开发者_JAVA技巧ecause re-recreate all entities is boring :-)
Yes, just add/copy the model file itself to the new project just like you would any other type of file. . You can even add/copy an existing store if the apps use the same initial data. I do this all the time
精彩评论