MFMessageComposeViewController cancel button not working

前端 未结 6 537
慢半拍i
慢半拍i 2021-01-17 10:42

I use this block to send message to the contacts, after sending, the back button is there, but when I touch it nothing happens. Please help me out :)

-(IBAct         


        
6条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-17 11:38

    Like the answers say, you need to dismiss in the delegate. My issue was I was setting delegate instead of messageComposeDelegate (or mailComposeDelegate for the e-mail version).

    Be sure you're setting the right delegate :)

提交回复
热议问题