[英]How can I get user's email? iPhone SDK
I need to get an user's email address that used in Mail.app. 我需要获取Mail.app中使用的用户电子邮件地址。
How can I do it with the iPhone SDK? 我怎么能用iPhone SDK做到这一点?
Thank you! 谢谢!
Short answer: you can't. 简短的回答:你做不到。 You should prompt the user for their email address if you need it.
如果需要,您应该提示用户输入他们的电子邮件地址。
welcome to IOS, just assume that you are not allowed to do anything that is related to the private user info ( email address \\ phone number ) 欢迎来到IOS,假设您不允许做任何与私人用户信息(电子邮件地址\\电话号码)相关的事情
another workaround is to save the user phone number and email address in the address book and get that from there 另一种解决方法是将用户电话号码和电子邮件地址保存在地址簿中,然后从那里获取
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.