I am trying to capture the “cancel” event when sending mail, so I can return to the previous view. This is my code (http://monobin.com/__db8fa53f). Tapping on the Cancel button, rather than the Send button, does nothing. What do I need to add to my code?
Share
I do not know what “AppDelegate.SetView(3);” does but if the result is “MFMailComposeResult.Cancelled”, you are not dismissing the mail controller. It is only being dismissed if the result is “MFMailComposeResult.Sent”.