MFMailComposeViewControllerDelegate not being called

前端 未结 4 1471
北恋
北恋 2021-01-20 02:08

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.

4条回答
  •  佛祖请我去吃肉
    2021-01-20 03:01

    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.

提交回复
热议问题