从本机联系人应用程序中检索选定的组 [英] Retrieve selected group from native contact application
问题描述
我正在处理一个应用程序,我需要在该应用程序中显示联系人应用程序中的联系人。
I am working on one application in which I need to show contacts from the contact application.
我已经成功实现了功能,但现在我只需要显示在本机联系人应用程序中选择的组中的联系人类似Magic Jack( http://itunes.apple.com/us/app/free-calls -with-magicjack / id463926997?mt = 8 )iPhone应用程序。
I have successfully implemented the functionality but now I need to only show the contacts from the groups which are selected in native contact application similar Magic Jack(http://itunes.apple.com/us/app/free-calls-with-magicjack/id463926997?mt=8) iPhone app.
我试图搜索谷歌,论坛,苹果的文档,但没能找到解决方案。任何人都可以帮助我吗?
I have tried to search on google, forums, apple's documentation but didn't able to find the solution. Can anyone help me?
我使用下面的代码来获取所有联系信息。
I am using below code to fetch all contact information.
ABAddressBookRef addressBook = ABAddressBookCreate();
ABRecordRef source = ABAddressBookCopyDefaultSource(addressBook);
NSArray *persons = (NSArray *)(ABAddressBookCopyArrayOfAllPeopleInSourceWithSortOrdering(addressBook, source, kABPersonSortByFirstName));
推荐答案
ABGroupCopyArrayOfAllMembers不适合你想要的吗?
Is ABGroupCopyArrayOfAllMembers not suitable for what you want?
这篇关于从本机联系人应用程序中检索选定的组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!