I am having difficulties adding the ability for a user to send a support email to myself (the maker of said app). I have gotten it work almost perfectly however the view doesn’t close when you click cancel, or when you click send. Thanks for the help!
Here is the code:
MFMailComposeViewController *mail = [[[MFMailComposeViewController alloc] init] autorelease];
mail.mailComposeDelegate = self;
[mail setToRecipients:[NSArray arrayWithObject:@"support@lindahlstudios.com"]];
[mail setSubject:@"Fraction Calculator Lite Support"];
[self presentModalViewController:mail animated:YES];
You’re setting
selfto be the MFMailComposeViewController’s delegate. In mailComposeController:didFinishWithResult:error: be sure to calllike so: