Skip to content

Commit

Permalink
Remove deprecated view controller presentation code.
Browse files Browse the repository at this point in the history
  • Loading branch information
dsklen committed Oct 18, 2013
1 parent 398828e commit 8423877
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mailcomp.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand All @@ -31,8 +31,7 @@ - (void)mailComposeController:(MFMailComposeViewController *)controller
if (error) {
NSLog(@"%@", error);

<#statements#>
}

[self dismissModalViewControllerAnimated:YES];
[self dismissViewControllerAnimated:YES completion:nil];
}

0 comments on commit 8423877

Please sign in to comment.