我可以检查 iPhone 上是否配置了电子邮件客户端:
if ([MFMailComposeViewController canSendMail])
{
// Actions to send mail
}
else
{
//Actions to show an error message by UIAlertView
}
如果没有配置电子邮件帐户,如何将用户重定向到电子邮件帐户配置表?
最佳答案
您可以打开首选项应用程序,但不能打开更多。从 iOS8 开始,只需使用这个:
NSURL *settingsAppURL = [NSURL URLWithString:UIApplicationOpenSettingsURLString];
[[UIApplication sharedApplication] openURL:settingsAppURL];
关于ios - 如何以编程方式打开电子邮件配置表?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32795464/