メールの複数の受信者がデフォルトで 2 つの添付ファイルを持っている場合に問題に直面しています。以下のコード以外の複数の受信者にメールを送信するときに何かしなければならないことはありますか? (UI から受信者 ID を選択または入力する必要があります)
if ([MFMailComposeViewController canSendMail])
{
[self printPdfAndCsv];// code to generate pdf & csv
MFMailComposeViewController* mailComposer = [[MFMailComposeViewController alloc] init];
mailComposer.mailComposeDelegate = self;
// attaching PDF File.
[mailComposer addAttachmentData:[NSData dataWithContentsOfFile:self.pdfFilePath]
mimeType:@"Application/pdf" fileName:[NSString stringWithFormat:@"pdfName-%@.pdf", selectedProjectName ]];
// attaching CSV File.
[mailComposer addAttachmentData:[NSData dataWithContentsOfFile:self.csvFilePath]
mimeType:@"text/csv" fileName:[NSString stringWithFormat:@"csvName-%@.csv", selectedProjectName ]];
[self presentViewController:mailComposer animated:YES completion:nil];
}
私は iPhone 開発のスターターなので、あなたの貴重な助けが必要です。