Is there a new way to present a MFMailComposeViewController for the iPhone 5? I’m working with a 4 and 5 side by side and the 4 presents/works correctly, yet for the 5 it doesn’t even hit the code:
if ([MFMailComposeViewController canSendMail]) {
MFMailComposeViewController *mailViewController = [[MFMailComposeViewController alloc] init];
mailViewController.mailComposeDelegate = self;
[mailViewController setToRecipients:[NSArray arrayWithObject:@"support@myemail.com"]];
[mailViewController setSubject:@"Feedback"];
[mailViewController setMessageBody:@"" isHTML:NO];
[self presentModalViewController:mailViewController animated:YES];
[mailViewController release];
}
Strange, it works perfect for me on iPhone 5!
what exactly do you mean “it doesn’t even hit the code”? Maybe yours
is false or problem in some abother place