开发者

Excel file into NSArray

开发者 https://www.devze.com 2023-03-01 05:24 出处:网络
I have an Excel file whose data I need to us开发者_如何学Pythone as a source for my table view. How can I convert the .xls into a plist file so I can parse it into NSArray? Does the Numbers app in iWo

I have an Excel file whose data I need to us开发者_如何学Pythone as a source for my table view. How can I convert the .xls into a plist file so I can parse it into NSArray? Does the Numbers app in iWork suite have this option?

Thanks.


The solution I’ve used in the past is to export the .xls as a tab-delimited file and then use e.g. a python script to convert from that to a plist. It’s pretty easy, though providing sample code to do it is difficult because it’s pretty problem-specific.


If you can export it as a CSV or TSV file, you can use my CHCSVParser to do all of the parsing work for you.

0

精彩评论

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