Where can I find a CSV to NSArray parser for Objec

2019-01-05 00:10发布

I'm looking for an easy to use CSV parser for Objective-C to use on the iPhone. Where can I find one?

I'm also looking for other parsers such as JSON, so maybe there is a conversion library somewhere.

8条回答
不美不萌又怎样
2楼-- · 2019-01-05 01:15

I wrote a dead-simple (although not fully-featured) CSV parser for a project I was working on: CSVFile.h and CSVFile.m. Feel free to grab it -- the code is available under the GPLv3 (unfortunately, it was a requirement for the project I was working on) but I'd be happy to license it to you under an MIT license or another license.

查看更多
啃猪蹄的小仙女
3楼-- · 2019-01-05 01:15

I've found ParseKit few weeks ago But IMHO for most cases -[NSString componentsSeparatedByString:] method and NSScanner are more than enough and quite easy to use.

查看更多
登录 后发表回答