Search code examples
objective-ciosexcelimport-from-excel

How to import Excel sheet data into my iphone App.


iam Working on a application where we can import contacts from facebook,linkedin,gmail etc,.. Same like i have an excel sheet with contact numbers and email Id's ,i need to import those contact numbers and email id's from Excel sheet. I have googled it like hell,found some answers saying that,save excel sheet in CSV format and you can parse it with CSV parser. So can any1 Please tell me Which is the best way to import those Excel Sheet data into my iphone App.

Thanks in Advance.


Solution

  • There is an open source C library on Source Forge called libxls that you can use to read a .xls file (the older non-XML format). In addition to that, there is a ObjectiveC framework that wraps the C library called DHlibxls. The library will let you read both string and numeric values. The library is quite mature and stable.