views:

75

answers:

1

Hello, I have a problem...

In my MFMailComposeViewController. i have button.If i click that Button it should open MFMailComposeViewController doesn't work on send and cancel buttons.

Please help in this issue

+2  A: 

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.

Pugal Devan