in the button callback:
MFMailComposeViewController *mailViewController = [[MFMailComposeViewController alloc] init];
mailViewController.mailComposeDelegate = self;
[self presentModalViewController:mailViewController animated:YES];
Delegate Implementation:
- (void)mailComposeController:(MFMailComposeViewController*)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError*)error {
NSLog (@" Inside MAIL COMPOSER CONTROLLER DELIGATE ");
[self dismissModalViewControllerAnimated:YES];
}
When I click the cancel button in MailComposerView, the deletion is not called. what am I doing wrong?
source
share