Possible duplicate:
The action table does not appear when you click the cancel button MFMailComposeViewController
I implemented the standard mail functionality in my application according to the sample code provided by Apple.
I configure the delegate as follows:
MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init]; picker.mailComposeDelegate = self;
and I realize
- (void)mailComposeController:(MFMailComposeViewController*)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError*)error
Pressing the submit button invokes the delegate and everything works fine. However, clicking the Cancel button does not invoke the delegate, and it simply reduces the presentation; the application hangs right there.
After reading such topics here, I thought that the idea for some reason could be off-screen, which at the moment is beyond understanding. Note that the view is created programmatically and does not use the xib file.
Any thoughts or ideas?
source share