Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7163629
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:56:06+00:00 2026-05-28T13:56:06+00:00

I am new to ios application Development.So pls bear me if anywhere i m

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T13:56:07+00:00Added an answer on May 28, 2026 at 1:56 pm

    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:

    <table border="1">
      <tr>
        <td>row 1, cell 1</td>
        <td>row 1, cell 2</td>
      </tr>
      <tr>
        <td>row 2, cell 1</td>
        <td>row 2, cell 2</td>
      </tr>
    </table>
    

    the code to create such a table could look like this:

        NSString *tableStart = @"<table border=\"1\">\n";
        NSString *rowStart = @"  <tr>\n";
        NSString *cellStart = @"    <td>";
        NSString *cellEnd = @"</td>\n";
        NSString *rowEnd = @"  </tr>\n";
        NSString *tableEnd = @"</table>";
    
        NSMutableString *table = [NSMutableString string];
        [table appendString:tableStart];
        for (MyObject *object in self.dataSource) {
            [table appendString:rowStart];  // one row for each object
    
            [table appendString:cellStart]; // first cell for title
            [table appendString:object.title];
            [table appendString:cellEnd];
    
            [table appendString:cellStart]; // second cell for rating
            [table appendFormat:@"Rating %d", object.rating];
            [table appendString:cellEnd];
    
            [table appendString:rowEnd];
        }
        [table appendString:tableEnd];
    

    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/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am kind of new to iOS development. I want to retrieve strings from
I am completely new to iOS development so I may be doing this wrong
I am new to iOS development so please bear with me. I have created
i am noob and new in development iphone application so i want to create
I am new in ios development.Now,i am developing an Ipad application using ios 4.2
We are new to iOS development and this is our first application for iPad
I’m new to the world of iOS development. I’m creating a iPad application where
I am new to iOS development and there is an application that I have
I am very new to iOS development, I have an app all set and
I am completely new to iOS development and I want to load another view

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.