- I was working for a mail app using MFMailComposeViewController.
-
web page was loaded when user cliks on a button.
-
- i set recipients sender, cc to the mail.
-
- i attach one image to the body of email using follow code:
[mailpage setToRecipients:toRecipients];
[mailpage setCcRecipients:ccRecipients];
[mailpage setBccRecipients:bccRecipients];
// Attach an image to the email
NSString *path = [[NSBundle mainBundle] pathForResource:@"iCon" ofType:@"png"];
NSData *myData = [NSData dataWithContentsOfFile:path];
[mailpage addAttachmentData:myData mimeType:@"image/png" fileName:@"iCon"];
Now i want to attach the table view which was already in my view to the body of the email page.
help me..
Thanks in advance
AFAIK it’s not possible to add UITableView to email. You have two options, first – generate html, and content of table view as html table, or second – render content of this UITableView in PDF file, and next add this pdf to email.