I'm trying to allow the user to send multiple text messages in succession in a MFMessageComposeViewController, but if I don't dismiss the controller in the didFinishWithResult delegate method, the Cancel button in the top right corner becomes disabled, and the user has no way of getting out of the text message interface.
Is the MFMessageComposeViewController only for sending one-off messages?
func messageComposeViewController(controller: MFMessageComposeViewController!, didFinishWithResult result: MessageComposeResult) {
if result.value == MessageComposeResultCancelled.value {
self.dismissViewControllerAnimated(true, completion: nil)
}
}
Thanks for the help.
来源:https://stackoverflow.com/questions/26345564/do-i-have-to-dismiss-a-mfmessagecomposeviewcontroller-in-its-didfinishwithresult