Tuesday, 22 March 2011

CSV parser for iPhone

You can download the CSV parser from the following link

http://zeeshanullah.com/blog/downloads/CSV.zip

I’ve used this CSV parser in 3 of my applications and all are on iTunes so do not worry while using this.

Use code:

CSVParser *parser = [CSVParser new];
[parser openFile: filePath];
NSMutableArray *csvContent = [parser parseFile];

Simple is that create the new object of CSVParser then define the path and at last call parseFile method that will return NSMutableArray of csv file.

No comments:

Post a Comment