How to read cell data from an Excel document with

2020-02-11 06:12发布

I'm building an iPhone app that has to download an Excel (.xls) file from a website and perform a string search of the spreadsheet data. I've done this in C#, but I have no idea how to do this in objective-c. How do I access the individual cells using objective-c?

1条回答
混吃等死
2楼-- · 2020-02-11 07:01

There is no innate ability to read Excel data into a Foundation container, like an NSArray or NSDictionary. You could, however, convert the file (with Excel) to a comma-separated-value (CSV) file and then parse each line's cells on the iPhone using the NSString instance method -componentsSeparatedByString:.

查看更多
登录 后发表回答