複数の添付ファイルを iOS でプログラム的に 1 つのメールで送信したい。これまでに次のことを試しました。
// I give the file from array
NSString *str_mail = [readingEmfReading objectAtIndex:0];
// here I can encode the file
NSData *myData = [str_mail dataUsingEncoding:NSUTF8StringEncoding]
//here I can attach the file with extance of .csv
[controller addAttachmentData:myData mimeType:@".cvs" fileName:retriveEmail]
//here I can set the body for mail
[controller setMessageBody:@"file" isHTML:NO];
//here code for sent mail
if (controller) [self presentViewController:controller animated:YES completion:nil];
このコードを使用すると、添付ファイルを 1 つだけ送信できます。ただし、複数のファイルを送信したい。どうすればこれを達成できますか?