iOS dev
iOS dev

Reputation: 2284

Add table view to the body of email in iPhone


 [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

Answers (1)

Tomasz Wojtkowiak
Tomasz Wojtkowiak

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

Related Questions