在iOS设备中获取默认用户电子邮件 [英] Get default user email in iOS Device

查看:205
本文介绍了在iOS设备中获取默认用户电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以从应用程序直接检索与默认电子邮件帐户相关联的用户电子邮件?

Is it possible to retrieve the user email associated with the default email account directly from an app?

截图:

谢谢

推荐答案

我不能证明是否定的,但我相当确定这是不可能的。您可以使用 MFMailComposeViewController 来允许用户从默认帐户发送电子邮件,但您不能直接访问有关默认帐户的信息。如果您需要用户的电子邮件地址,您必须要求他们输入,或者从他们的联系人中选择它们。

I can't prove a negative, but I am fairly certain this is not possible. You can use MFMailComposeViewController to allow the user to send an email from the default account, but you cannot directly access information about the default account. If you need the user's email address, you either have to ask for them to type it in, or have them select it from their contacts.

这篇关于在iOS设备中获取默认用户电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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