How can I get user's email? iPhone SDK
I need to get an user's email address that used in Mail.app.
How can I do it with the i开发者_开发知识库Phone SDK?
Thank you!
Short answer: you can't. You should prompt the user for their email address if you need it.
Have a look at ABGetMe for iOS. Specifically, the AccountEmailAddresses
function returns the list of configured e-mail addresses.
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 )
another workaround is to save the user phone number and email address in the address book and get that from there
精彩评论