MFMailComposeViewController没有安装邮件应用程序? [英] MFMailComposeViewController without Mail app installed?
问题描述
MFMailComposeViewController
并且默认的Mail应用程序在设备上未安装和配置? 如果应用程序崩溃,检查此案例的最佳方法是什么?
它看起来像 MFMailComposeViewController.canSendMail()
将返回false,而 MFMailComposeViewController() / code>将导致崩溃(EXC_BAD_ACCESS)。使用
canSendMail()
检查以确定设备是否可以显示一个 MFMailComposeViewController
。
Now that apps like Apple's "Mail" app can be deleted in iOS 10, what will happen when a developer attempts to initialize and present MFMailComposeViewController
and the default Mail app is not installed and configured on the device?
If the app crashes, what is the best way to check for this case?
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
.
这篇关于MFMailComposeViewController没有安装邮件应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!