Instance Method


Returns the identifier of the default container.


func defaultContainerIdentifier() -> String

Return Value

The identifier of the default container.


This identifier can be used to fetch a default container. A default container is where the user wants new contacts to be added implicitly.

See Also

Fetching Groups and Containers

func groups(matching: NSPredicate?) -> [CNGroup]

Fetches all groups matching the specified predicate.

func containers(matching: NSPredicate?) -> [CNContainer]

Fetches all containers matching the specified predicate.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software