Reputation: 2284
web page was loaded when user cliks on a button.
[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
Upvotes: 0
Views: 531
Reputation: 4920
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.
Upvotes: 1