MFMailComposeViewController错误[MC]筛选束ID的邮件表帐户 [英] MFMailComposeViewController error [MC] Filtering mail sheet accounts for bundle ID

查看:101
本文介绍了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(["someemail@gmail.com"])
    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]过滤邮件表帐户的捆绑软件ID:[我的捆绑软件ID],源帐户管理:1

[MC] Filtering mail sheet accounts for bundle ID: [My Bundle ID], source account management: 1

[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的邮件表帐户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆