diff --git a/mailcomp.m b/mailcomp.m index bab0dc52..84cd40c8 100644 --- a/mailcomp.m +++ b/mailcomp.m @@ -16,7 +16,7 @@ - (void)presentModalMailComposerViewController:(BOOL)animated { [composeViewController setMessageBody:<#Body#> isHTML:YES]; [composeViewController setToRecipients:@[<#Recipients#>]]; - [self presentModalViewController:composeViewController animated:animated]; + [self presentViewController:composeViewController animated:animated completion:nil]; } else { [[[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Error", nil) message:NSLocalizedString(@"<#Cannot Send Mail Message#>", nil) delegate:nil cancelButtonTitle:NSLocalizedString(@"OK", nil) otherButtonTitles:nil] show]; } @@ -31,8 +31,7 @@ - (void)mailComposeController:(MFMailComposeViewController *)controller if (error) { NSLog(@"%@", error); - <#statements#> } - [self dismissModalViewControllerAnimated:YES]; + [self dismissViewControllerAnimated:YES completion:nil]; }