You need to create a method to perform this kind of operation, for example:
NSString *separator = @", ";
NSString *cvs = @"";
for (NSObject *object in arrayOfObject) {
cvs = [NSString stringWithFormat:@"%@%@%@%@%@\n", cvs, [object att1], separator, [object att2], separator, [object att3]...];
}
[cvs writeToFile:pathToFile atomically:YES];
"" , , .
stringWithFormat, var, , :
Objective-C NSStrings
: https://github.com/davedelong/CHCSVParser
, / CVS.