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 7679467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:53:03+00:00 2026-05-31T17:53:03+00:00

I am new in ios development .Now i am trying to develop an ipad

  • 0

I am new in ios development .Now i am trying to develop an ipad application .In my application sent an image to mail,the image means a uiview and converted to uiimage with the following code and sent to mail

-(void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex

{
UIGraphicsBeginImageContext(intermediateView.frame.size);
[intermediateView.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();


CGRect rt=intermediateView.frame;
NSLog(@"size of intermediate view %@",NSStringFromCGRect(rt));


    if(buttonIndex==1)
    {




       if([MFMailComposeViewController canSendMail]) 
       {

        MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init];
        picker.mailComposeDelegate = self;
        [picker setSubject:@"Image Of Road Accident"];

        //UIImage *roboPic =image;
        NSData *imageData = UIImageJPEGRepresentation(viewImage, 1);
        [picker addAttachmentData:imageData mimeType:@"image/jpg" fileName:@"RobotWithPencil.jpg"];

        NSString *emailBody = @"This  image from my phone!";
        [picker setMessageBody:emailBody isHTML:YES];

        [self presentModalViewController:picker animated:YES];

    }
       else
       {
           NSLog(@"An error occur for our display");
       }
    }

Basically this code work fine.My applications need is to drag and drop images from a menu. If large amount of image add to the UIView ,the image(UIView) can not save to mail
(The application will break).

Has any image size limitation for image send to mail in ios application?

How can overcome this issue?

If anybody know ,please help me.

  • 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-31T17:53:04+00:00Added an answer on May 31, 2026 at 5:53 pm

    Your Server may have restricted Image Size Limit. You should increase image upload limit.

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

Sidebar

Related Questions

I am new in ios development.Now,i am developing an Ipad application using ios 4.2
I am new in ios development.Now , i am trying to implement an application
We are new to iOS development and this is our first application for iPad
I am quite new to iOS development and trying hard to develop an App.
New to ios development, looking for some guides, Can I develop ios application on
I am new to iOS development. Now I am implementing an UIPanGestureRecognizer model application.
I am new to ios development. I am trying to implement an ios application
I'm new to IOS development, and I'm just trying to get my head around
New to iOS development, I've been following the tutorials on developer.apple.com, and am now
I am new in ios development, Now i am doing some animation on my

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.