Loading a CSV into Core Data managed sqlite db

后端 未结 2 1059
予麋鹿
予麋鹿 2020-12-14 04:42

I have a CSV file containing data. I want to load it into a Core Data managed sqlite db.

I just ran one of the sample Core Data Xcode apps and noticed it created the

相关标签:
2条回答
  • 2020-12-14 05:15

    Use NSScanner to read your CSV file into the NSManagedObject instances in your Core Data store.

    0 讨论(0)
  • 2020-12-14 05:32

    I have some categories on NSString for reading and writing CSV files from/to NSArrays. I'll post them online and edit my answer with a link to it.

    edit

    They're online here: http://github.com/davedelong/CHCSVParser

    0 讨论(0)
提交回复
热议问题