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

  • SEARCH
  • Home
  • 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 7905859
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T10:39:54+00:00 2026-06-03T10:39:54+00:00

I am New To Iphone programming.my Array store UIlabel along with properties.For Exp,Text,TextColor,background color

  • 0

I am New To Iphone programming.my Array store UIlabel along with properties.For Exp,Text,TextColor,background color etc.Now i want to send all the array data in E-mail body.
here is my code.

    NSUserDefaults *userDefault=[NSUserDefaults standardUserDefaults];
    NSData *myDecodedObject = [userDefault objectForKey: [NSString 
            stringWithFormat:@"sample"]];
    NSArray *arr= [[NSArray alloc] init];
    arr= [NSKeyedUnarchiver unarchiveObjectWithData:myDecodedObject]; 
    NSString *string = [arr componentsJoinedByString:@"\n"];
    NSString *emailBody = string;
    NSLog(@"Testing %@", string);
    [mailer setMessageBody:emailBody isHTML:NO];
    [self presentModalViewController:mailer animated:YES];
    [mailer release];

My array show all the objects which is store in it and also show bytes.At this time my array contain 5 UIlabel .Now i want to send all these UIlabel in E-mail body.but NSLog i see this.

Testing UILabel: 0x8123760; frame = (135.5 136; 99 30); text = ‘Fddddddddddddddsaafgghjkl…’; clipsToBounds = YES; hidden = YES; layer = CALayer: 0x8161590

UILabel: 0x81619b0; frame = (148 323; 69 15); text = ‘Xxxxxxxxxxx’; clipsToBounds = YES; layer = CALayer: 0x8161a50

UILabel: 0x8161b70; frame = (140 341; 56 19); text = ‘Xxxxxxx’; clipsToBounds = YES; layer = CALayer: 0x81618f0

UILabel: 0x8161d70; frame = (69.5 121.5; 99 145); text = ‘Fddddddddddddddsaafgghjkl…’; clipsToBounds = YES; hidden = YES; layer = CALayer: 0x8161e00

UILabel: 0x8161f10; frame = (108 321; 99 145); text = ‘Fddddddddddddddsaafgghjkl…’; clipsToBounds = YES; layer = CALayer: 0x8161f80

Not Seen any data in E-mail.so please Suggest What is Best approach to send array data in E-mail.Thanx

  • 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-06-03T10:39:56+00:00Added an answer on June 3, 2026 at 10:39 am

    useMFmailComposer’s addDataAttachements method to add the data from array

         NSData *data = [NSKeyedArchiver archivedDataWithRootObject:arr1];
           NSLog(@"Testing %@", data);
          [controller addAttachmentData:data mimeType:@"application/octet-stream";  
          fileName:nil]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new to iPhone Programming I want to read the content of text
Iam new to iPhone Programming,Now i want to know about what is the uses
I am new to iPhone programming and I was unable to change background of
am new to iphone programming. I have a viewcontoller with an alertview in it.
I am new in iphone programming. I would like to know how can i
I'm new to iPhone programming, and I'm trying to make a simple program without
I am new to iPhone programming. I want to get the height and width
I am new to iPhone programming. I have 10 number say (1,2,3,4,5,6,7,8,9,10) . I
I'm fairly new to iPhone programming and am trying to implement a double-component PickerView.
I am new in iPhone programming. At the moment I am trying to recognize

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.