简体   繁体   中英

ios how to retrieve the email addresses from contacts,mail?

i want to retrieve the email ids of users exist in contact and mail app in the device.It just like there is search field to search the user email id and the fallowed table will show the results that contains the search text.And the users email id's need to search in contacts and mail. can anyone help me out.

You cannot grab any information from the mail.app on an iDevice. Apple's Sandbox rules prevent this sort of thing.

With the contacts - it's possible. You should read up on the Address framework.

Here's Apple documentation on it: https://developer.apple.com/library/ios/documentation/AddressBook/Reference/AddressBook_iPhoneOS_Framework/_index.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM