Contact Containers

I am intrigued by the new addContact(_:toContainerWithIdentifier:) function in the CNSaveRequest Class Reference for iOS 9. Where can I find more information on contact containers other than the default? I want to create and share contacts across a group of apps, but not have those contacts mix into and appear in the default contacts list. Can I create my own containers and identifiers to do this? If not, what is the purpose and use of these other contact containers?

Accepted Reply

Ah, I see there is a CNContainer object that comes in four types: Unassigned, Local, Exchange, and CardDAV. According to the docs, there is only one local container for a device.

Replies

Ah, I see there is a CNContainer object that comes in four types: Unassigned, Local, Exchange, and CardDAV. According to the docs, there is only one local container for a device.

What is your code ?

There is no code -- at least not using CNContainer. I went a different route.

  • Would you be willing to share what different route you took?

Add a Comment