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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:14:48+00:00 2026-06-13T09:14:48+00:00

Noticed that my MFMailComposeViewController that I use to modally pop a dialog to send

  • 0

Noticed that my MFMailComposeViewController that I use to modally pop a dialog to send email no longer works in iOS6. It still pops the dialog, but I can’t set the body text, or input anything into the view. All I can do is press cancel.

The class implements the MFMailComposeViewControllerDelegate interface and here’s some of the code:

//h file
@interface ASEmailSender : NSObject


//m file
@implementation MyEmailSender () <MFMailComposeViewControllerDelegate>
@end

@implementation MyEmailSender
...

- (void)emailFile:(ASFile *)file inController:(UIViewController *)viewController {
    MFMailComposeViewController *mailController = [[MFMailComposeViewController alloc] init];
    if ([MFMailComposeViewController canSendMail]) {
        mailController.mailComposeDelegate = self;
        [mailController setSubject:@"my subject"];
        [mailController setMessageBody:@"msg body here" isHTML:NO];

        [viewController showIsLoading:YES];
        self.viewController = viewController
        [viewController presentModalViewController:mailController animated:YES];
    }   
}

- (void)mailComposeController:(MFMailComposeViewController *)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError *)error {
    [self.viewController dismissModalViewControllerAnimated:YES];
}

It works great in iOS5.

  • 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-13T09:14:49+00:00Added an answer on June 13, 2026 at 9:14 am

    I fixed this by changing MyEmailSender to be a UIViewController instead of an NSObject. For some reason this fixes the problem when running in iOS6. The new code looks like:

    //h file
    @interface ASEmailSender : UIViewController <MFMailComposeViewControllerDelegate>
    
    
    //m file
    @implementation MyEmailSender
    ...
    (same functions as before)
    

    Now it works in both iOS5 and iOS6.

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

Sidebar

Related Questions

I noticed that the <td align=center> code works differently on the MediaWiki.org page and
I noticed that IE 9 does not support application cache. How can I use
I noticed that in Java, you can use a class which has members of
I noticed that when the user taps an app store link in the iOS6
I noticed that when I do something like this (with jQuery, but I don't
I noticed that when I use echo to print something to a file in
I noticed that you can call Queue.Synchronize to get a thread-safe queue object, but
I noticed that DateChooser has the method setFirstDayOfWeek(int) , but since DateChooser does not
I noticed that the generic IEnumerator<T> inherits from IDisposable, but the non-generic interface IEnumerator
I noticed that there are two sets of Hadoop configuration parameters: one with mapred.*

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.