user1530506
user1530506

Reputation: 33

csv to core data

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

Answers (2)

Paresh Navadiya
Paresh Navadiya

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

sosborn
sosborn

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

Related Questions