Ios 设备8.2上的MFMailComposeViewController崩溃

Ios 设备8.2上的MFMailComposeViewController崩溃,ios,swift,email,mfmailcomposer,Ios,Swift,Email,Mfmailcomposer,为什么只有使用8.2的设备才会崩溃?在其他版本上工作正常,甚至在8.2版本的模拟器上工作正常 var mailPicer = MFMailComposeViewController() mailPicer.mailComposeDelegate = self mailPicer.setCcRecipients(["bla@dad.com"]) mailPicer.setEditing(true, animated: true) mailPicer.setSubje

为什么只有使用8.2的设备才会崩溃?在其他版本上工作正常,甚至在8.2版本的模拟器上工作正常

var mailPicer = MFMailComposeViewController()
    mailPicer.mailComposeDelegate = self
    mailPicer.setCcRecipients(["bla@dad.com"])
    mailPicer.setEditing(true, animated: true)
    mailPicer.setSubject("I have something to tell you")
    mailPicer.setMessageBody("bla bbla`", isHTML: true)
    self.presentViewController(mailPicer, animated: true, completion: nil) 
我也没有得到任何撞车的记录


有什么想法吗?

如果MFMailComposeViewController.canSendMail(),请检查

在执行应用程序的其余部分之前添加以下内容:

if(!MFMailComposeViewController.canSendMail()) {
    // show user a message f.e.
    return
}

从Xcode设备窗口访问设备上的崩溃日志,看看崩溃转储告诉您什么。我今天一定很慢:)这是日志异常类型:EXC_crash(SIGABRT)异常代码:0x0000000000000000,0x0000000000000000由以下线程触发:0上次异常回溯:0 CoreFoundation 0x1823b6530 u异常预处理+132 1 libobjc.A.dylib 0x1933400e4 objc u异常抛出+60 2 UIKit 0x186edb0cc-[UIViewController presentViewController:withAnimationController:完成:]+3376正如我之前所说,今天要慢下来。。。。很抱歉,我没有检查MFMailComposeViewController.canSendMail()是否。。。。。。