Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

NSContacts - how to get linked contacts from a unified contact ?

Hi,


In my address book, I have unified contacts for some people :

- one card is with personal data, and is shared with my family with a iCloud account

- for the same person, one card is business oriented, with business data, on another iCloud account


I develop a program with xCode, in swift.

I want to access the contact from the business side, but I am only able to get a unified contact ; when I remove it, I remove both cards.


How can I access the linked contacts from a unified contact ? Or how can I access only one of the linked contacts ?


I currently use unifiedContactsMatchingPredicate (with predicate predicateForContactsInGroupWithIdentifier) which fetches only unified contacts ; I could not find another method more appropriate !


Thanks for your help,


Nicolas

Posted on Jan 24, 2016 2:29 AM

Reply
Question marked as Best reply

Posted on Feb 6, 2016 3:24 PM

Hi,


I finally found a (the?) solution, with CNContactFetchRequest and its unifyResults option,


Niclas

1 reply

NSContacts - how to get linked contacts from a unified contact ?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.