I am new to ios application Development.So pls bear me if anywhere i m wrong.I want to send an email from my app with the attachment.Attachment contains tableview and a pie chart.I searched in google and find taking screenshots and sending mail..But i have lot of rows in my tableview.So is that any other better alternative way to send a table of data as a mail attachment? any help would be appreciated.
Share
you could create a html table out of your tableview data. HTML tables are quite easy to create with some NSString magic.
A very basic table looks like this:
the code to create such a table could look like this:
this will create a very basic table. With some html knowledge you can add more fanciness.
When you have that table embed it in a html document and send the email as html.
If you want to go this way you have to learn the basics of html. There is a lot of information about this in the web. You could start with those two links.
http://dev.opera.com/articles/view/1-introduction-to-the-web-standards-cur/#toc
http://dev.opera.com/articles/view/19-html-tables/