我将MFMailcomposeViewController用于邮件功能。
但是当应用程序存在MFMailComposeViewController时,toReceipts字段中的文本会延迟显示。为什么这样?
if MFMailComposeViewController.canSendMail()
{
var mailPicker = MFMailComposeViewController()
mailPicker.mailComposeDelegate = self;
mailPicker.setSubject("hello");
mailPicker.setMessageBody(txtViewBody.text, isHTML: false);
mailPicker.setToRecipients(["[email protected]"])
self.becomeFirstResponder();
presentViewController(mailPicker, animated: true, completion: {
println("Mail composer completion block")
});
}
最佳答案
它将在模拟器中显示带有延迟的收件人。
在设备中,它不会延迟加载。