Reputation: 33
I'm new to core data. How do I go about importing a fileName.csv into an Xcode core data project. What type of app should I start with. The data does not need to change. I should be able to search for a particular object and find it. Please help. Thanks
Upvotes: 1
Views: 1424
Reputation: 38249
Firstly store csv file data to NSArray refer convert-csv-format-into-nsarray link.
Now to save a NSArray/NSMutableArray in Core Data refer NSArray/NSMutableArray in Core Data link.
Upvotes: 2
Reputation: 14694
If the data does not change then I would suggest not using Core Data. You could import the csv data (search around on google, there are several csv parsers for Objective-C) and store that information in an NSDictionary.
Upvotes: 1