开发者

Import data from Excel File to Core Data

开发者 https://www.devze.com 2023-01-20 16:48 出处:网络
开发者_如何学PythonI have thousands of students records in Excel sheet. Now I will import that all data into Coradata [from Excel sheet to Coredata] and I will create my iPhone application using that

开发者_如何学PythonI have thousands of students records in Excel sheet. Now I will import that all data into Coradata [from Excel sheet to Coredata] and I will create my iPhone application using that coredata.

I don't have any idea, how to import Excel file data into coredata.


You're thinking to broadly. You need to decompose this problem further. Here's your real problem:

  1. How do I read an Excel file into memory?
  2. How do I create Core Data objects?

"Excel" has nothing to do with "Core Data". They are entirely disjoint topics.

For the first question, there are several options. You could try and find a library that reads .xls or .xlsx files directly, or you could require that the file be in a different format (like CSV or something).

For the second question, that's easily answered by reading the Core Data documentation.


I would convert the file to xml.
There are plenty of codes showing how to parse xml.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号