0
我從UITextfields通過UIButton發送一封電子郵件,並帶有以下參數。Swift /如何使MFMailComposeViewController消失
let mc: MFMailComposeViewController = MFMailComposeViewController()
mc.mailComposeDelegate = self
mc.setSubject("Neue Reservierungsanfrage")
mc.setMessageBody(messageBody, isHTML: false)
mc.setToRecipients(["[email protected]"])
self.presentViewController(mc, animated: true, completion: nil)
無論我是否按取消或發送,電子郵件發送屏幕不會消失。
我怎樣才能讓屏幕消失,並且一旦用戶按下「發送」按鈕就會彈出一個確認彈出窗口?
幫助非常感謝。