为什么这仅在具有8.2的设备上崩溃?在其他版本上也可以正常工作,甚至在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)
我也没有崩溃的任何日志...
有什么想法吗?
最佳答案
检查if MFMailComposeViewController.canSendMail()
关于ios - MFMailComposeViewController在设备8.2上崩溃,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/29367128/