问题
How would I parse a CSV into an array. Its only a one column spread sheet I converted into an CSV so it shouldn't be too hard right?
Any way how do I do this?
回答1:
Use a proper CSV parser such as https://github.com/davedelong/CHCSVParser
回答2:
you can do this
new_array *new_obj = [csv_array componentsSeparatedByString:@","];
Hope it helps!!!!
来源:https://stackoverflow.com/questions/3286254/objective-c-parsing-a-csv-into-a-array