I had problems with this approach. In my application, I used the MFMailComposeViewController for email and the MFMessageComposeViewController for SMS messages, and the didFinishWithResult routines used a similar approach to the above, where a warning is issued before the VC is rejected.
It seemed that if you sent SMS the next time you try the email, the cursor will not appear in the body of the message and you will not be able to select any text. Also in the debugger, I received "wait_fences: did not receive a response: 10004003".
In the end, I just removed the warnings from this part of the application, and the problem disappeared. If anyone has a solution to this question, I would be happy to hear it.
source share