sudhakar sudhakar - 1 month ago 4
iOS Question

Why won't the MFMailComposeViewController's Cancel or Send buttons work?

I have a problem...

I create a MFMailComposeViewController and it shows up.

However, neither the Send nor the Cancel button work.


You have to put on this code in ur application,

   - (void)mailComposeController:(MFMailComposeViewController*)controller     didFinishWithResult:(MFMailComposeResult)result error:(NSError*)error 
[self dismissModalViewControllerAnimated:YES];

Try this one and it works send and cancel buttons properly.