I\'m new to coding so please excuse me if this seems like a simple question.
I\'m trying to plot coordinates on a map.
I want to read a CSV file and pass the
NSString* fileContents = [NSString stringWithContentsOfURL:filename ...];
NSArray* rows = [fileContents componentsSeparatedByString:@"\n"];
for (...
NSString* row = [rows objectAtIndex:n];
NSArray* columns = [row componentsSeparatedByString:@","];
...
You'll probably want to throw in a few "stringTrimmingCharactersInSet" calls to trim whitespace.