Goal C: How to store static data in Core Data at application startup

I intend to use Core Data to store a static list of data consisting of objects with attributes (e.g. object = person, attributes = weight, height, etc.).

Any tips on how best to approach this? What raw file format do I need to use, and what is the best way to load data from a raw file into the main data?

Appreciate any advice and help on this

+3
source share
3 answers

If the data set is large, you must include the pre-populated SQLite store in the application bundle.

Xcode NSManagedObject ( ). .

/ . [NSBundle pathForResourse:Type]. readonly.

Core Data, .

+6

.plist CoreData.

CoreData, . plist AppDelegate.

( ): - , retreval . - .

plist, - xml plist ( ). , , plist.

, - , / . , plist . , , , .

+6

1, . ( SQLite XML ), ;

2, SQLite.. Core Data , . - Mac iPhone-, Core Data Core Data API - , SQLite. , , .

.

0