查找并显示 AB 中的联系人及其 UID
我在理解如何在 Mac 地址簿中查找联系人并使用 selectInAddressBook:sender 方法在 AB 中显示它时遇到问题。 ABPeoplePicker 类文档没有准确提及它传递哪些信息来获取联系人。
我的上下文是一个应用程序,我不会从 PeopleViewer 中选择联系人,而是通过先前存储在数据库中的 ABRecord UID(例如:6B2B9B69-CFC4-46F2-AEB1-43A99382D305:ABPerson)。如何使用此信息通过 selectInAddressBook 方法联系联系人?
谢谢
I'm having a problem understanding how to find a contact in the Mac Address Book and displaying it in the AB using the selectInAddressBook:sender method. The ABPeoplePicker CLass documentation doesn't mention precisely which information it passes to get the contact.
My context is an app where I would not select the contact from the PeopleViewer but by having a ABRecord UID previously stored in a database (for example: 6B2B9B69-CFC4-46F2-AEB1-43A99382D305:ABPerson). How can I use this info to reach the contact with the selectInAddressBook method?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最终我在地址簿框架中的ABAddressBook.h中找到了解决方案。
I finally found the solution in ABAddressBook.h in the address book framework.