I realize this question has been inexactly asked around, but I haven\'t been able to find an answer to my problem.
I have a UITableViewController with static cells.
MFMailComposeViewController is a subclass of UINavigationController, which already has a delegate property to handle navigation changes.
MFMailComposeViewController has another property called mailComposeDelegate, which is the property you are looking for.
Also, you should create the controller before setting the delegate.