I got a working csv attachment to an email view. The problem is, that when I open the csv on the iPhone it displays the file really nice into separate columns. But if I open
The solution to my own problem was quite simple (if anyone ever happens to come across my post): I replaced the "," by a semicolon so
[csv appendFormat:@"\n%@ ;%@,", key, value];
(don't need the \" since it*'s a string already). It works with excel now but does not display correctly on iPhones/iPads anymore because the field separator there is a ",".
But my problem is solved.