2
为什么只会在具有8.2的设备上崩溃?在其他版本的工作得很好,甚至有8.2优良工程模拟器......MFMailComposeViewController在设备上崩溃8.2
var mailPicer = MFMailComposeViewController()
mailPicer.mailComposeDelegate = self
mailPicer.setCcRecipients(["[email protected]"])
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)
我没有得到任何日志崩溃,以及...
有什么想法?
访问从Xcode的设备窗口设备上的崩溃日志,看看故障转储告诉你。 – 2015-03-31 11:08:17
好,我一定是缓慢的今天:)这是日志 异常类型:EXC_CRASH(SIGABRT) 异常代码:0x0000000000000000,0x0000000000000000 触发通过主题:0 上次异常回溯: 0的CoreFoundation \t 0x1823b6530 __exceptionPreprocess + 132 1 libobjc.A.dylib \t 0x1933400e4 objc_exception_throw + 60 2 UIKit的\t 0x186edb0cc - [UIViewController中_presentViewController:withAnimationController:完成:] + 3376 – Waylli 2015-03-31 11:18:18
正如我今天慢以前说过....很抱歉的职位,我didn't检查 如果MFMailComposeViewController .canSendMail()...... – Waylli 2015-03-31 11:33:54