Описание тега cncontactstore
The CNContactStore class is a thread-safe class that can fetch and save contacts, groups, and containers.
The CNContactStore class provides ways to execute fetch and save requests. There are a few recommended ways you can implement these requests in your app to load contacts:
Fetch only the contact properties that will be used.
When fetching all contacts and caching the results, first fetch all contacts identifiers, then fetch batches of detailed contacts by identifiers as required.
To aggregate several contacts fetches, first collect a set of unique identifiers from the fetches. Then fetch batches of detailed contacts by those unique identifiers.
If you cache the fetched contacts, groups, or containers, you need to refetch these objects (and release the old cached objects) when CNContactStoreDidChangeNotification is posted.
Because CNContactStore fetch methods perform I/O, it’s recommended that you avoid using the main thread to execute fetches.