简体   繁体   English

ios如何从联系人,邮件中检索电子邮件地址?

[英]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. 我想检索设备中联系人和邮件应用程序中存在的用户的电子邮件ID。就像有一个搜索字段来搜索用户电子邮件ID一样,休假表将显示包含搜索文本的结果。 id需要搜索联系人和邮件。 can anyone help me out. 谁能帮我吗。

You cannot grab any information from the mail.app on an iDevice. 您无法从iDevice上的mail.app获取任何信息。 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 这是上面的Apple文档: https : //developer.apple.com/library/ios/documentation/AddressBook/Reference/AddressBook_iPhoneOS_Framework/_index.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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