MFMailComposeViewController without Mail app installed?

余生长醉 提交于 2019-11-28 12:44:41

On iOS 12 and above, canSendMail() will return true even if the Mail app is not installed. The MFMailComposeViewController will be presented, but the user will be unable to send mail.

On iOS versions below 12:

It looks like MFMailComposeViewController.canSendMail() will return false, and MFMailComposeViewController() will cause a crash (EXC_BAD_ACCESS). Use the canSendMail() check to determine if the device can show a MFMailComposeViewController.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!