MFMailComposeViewController

MFMailComposeViewController

本文介绍了MFMailComposeViewController错误[MC]筛选束ID的邮件表帐户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我具有使用MFMailComposeViewController发送消息的标准功能.

I do the standard functionality of sending messages with MFMailComposeViewController.

我的代码:

if MFMailComposeViewController.canSendMail()
{
    let mail = MFMailComposeViewController()
    mail.mailComposeDelegate = self
    mail.setToRecipients(["[email protected]"])
    mail.setSubject("Subject")
    mail.setMessageBody("Some Text", isHTML: false)
    self.presentViewController(mail, animated: true, completion: nil)
}

控制器无法打开,我在控制台中看到一条从未见过的消息.

Controller do not open and I see a message in the console that have never seen.

[MC]结果:否

请帮助.

推荐答案

如果已在尝试测试应用程序的设备上设置了邮件帐户,则没有问题.请创建一个邮件帐户.

If a mail account has been set at the device where you try to test your application there is no problem. Please create a mail account.

这篇关于MFMailComposeViewController错误[MC]筛选束ID的邮件表帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 07:55