Skip to content
This repository was archived by the owner on Jun 27, 2020. It is now read-only.

Commit 8423877

Browse files
committed
Remove deprecated view controller presentation code.
1 parent 398828e commit 8423877

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mailcomp.m

+2-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ - (void)presentModalMailComposerViewController:(BOOL)animated {
1616
[composeViewController setMessageBody:<#Body#> isHTML:YES];
1717
[composeViewController setToRecipients:@[<#Recipients#>]];
1818

19-
[self presentModalViewController:composeViewController animated:animated];
19+
[self presentViewController:composeViewController animated:animated completion:nil];
2020
} else {
2121
[[[UIAlertView alloc] initWithTitle:NSLocalizedString(@"Error", nil) message:NSLocalizedString(@"<#Cannot Send Mail Message#>", nil) delegate:nil cancelButtonTitle:NSLocalizedString(@"OK", nil) otherButtonTitles:nil] show];
2222
}
@@ -31,8 +31,7 @@ - (void)mailComposeController:(MFMailComposeViewController *)controller
3131
if (error) {
3232
NSLog(@"%@", error);
3333

34-
<#statements#>
3534
}
3635

37-
[self dismissModalViewControllerAnimated:YES];
36+
[self dismissViewControllerAnimated:YES completion:nil];
3837
}

0 commit comments

Comments
 (0)