Is there a way to know when a MFMailComposeViewController is dismissed?
The controller vanishes automatically when the email is sent.
I have tried to use mailComposeController:didFinishWithResult:error: but when this method is triggered the controller is still visible.
I have tried to add a viewWillDisappear method but MFMailComposeViewController is not triggering that.
How do I do that?
This Method is called Whenever the
Cancel,save or Sendmail Button clicked.From Apple DOC:-
Your implementation of this method should dismiss the mail composition view. Implementation of this method is optional but expected.
If the user has opted to send the email created by this interface, that email should be queued in the user’s Mail program by the time this method is called. If an error occurred while queueing the email message, the error parameter contains an error object indicating the type of failure that occurred.
See The Detailed Information