如何以编程方式确定iOS中的默认电子邮件帐户/地址? [英] How to programmatically determine default email account/address in iOS?

查看:136
本文介绍了如何以编程方式确定iOS中的默认电子邮件帐户/地址?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在iOS设备上,一次可以配置多个电子邮件帐户。在设置应用中,用户可以选择默认的电子邮件帐户(Mail-> Mail:DefaultAccount)。这个默认帐户是通过MFMailComposeViewController发送电子邮件时的从地址。



有没有任何苹果公司批准的方式来以编程方式检测默认帐户或电子邮件的名称地址被用作从?

解决方案

我不相信在iOS中可以获取用户的电子邮件地址。 / p>

这里有一个类似的问题:
在iOS设备中获取默认用户电子邮件


On an iOS device, once can configure multiple email accounts. In the Settings app, a user can pick a default email account (Mail->Mail:DefaultAccount). This default account is the "from" address when sending email via MFMailComposeViewController.

Is there any Apple-approved way to programmatically detect either the name of the default account or the email address being used as "from"?

解决方案

I do not believe it is possible in iOS to obtain the user's email address.

A similar question was asked here: Get default user email in iOS Device

这篇关于如何以编程方式确定iOS中的默认电子邮件帐户/地址?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆