diff --git a/src/ios/EmailComposer.m b/src/ios/EmailComposer.m index d937016..474a28d 100644 --- a/src/ios/EmailComposer.m +++ b/src/ios/EmailComposer.m @@ -160,7 +160,7 @@ -(void) showEmailComposerWithParameters:(NSDictionary*)parameters { } if (mailComposer != nil) { - [self.viewController presentModalViewController:mailComposer animated:YES]; + [self.viewController presentViewController:mailComposer animated:YES completion:nil]; } else { [self returnWithCode:RETURN_CODE_EMAIL_NOTSENT]; } @@ -192,7 +192,7 @@ - (void)mailComposeController:(MFMailComposeViewController*)controller didFinish break; } - [controller dismissModalViewControllerAnimated:YES]; + [controller dismissViewControllerAnimated:YES completion:nil]; [self returnWithCode:webviewResult]; } @@ -219,4 +219,4 @@ -(NSString *) getMimeTypeFromFileExtension:(NSString *)extension { return mimeType; } -@end \ No newline at end of file +@end