CNContact changed date and contacts changed

Questions:

  • How to get the latest modified date in CNContact (Apple's new contact structure)?
    Last modified date is not in keysToFetch list

  • I would like to receive and update contacts that have changed since the last extraction. How can i do this?

+7
ios cncontact
source share
1 answer

According to Apple Staff answer, there is no api for this right now. https://forums.developer.apple.com/thread/16049

To accomplish almost the same, I would suggest using

enumerateContactsWithFetchRequest:error:usingBlock: 

Assuming that an individual contact is identified by name, when the name field remains unchanged, but other information changes, we can say that the contact is updated. If you're concerned about performance, do it in the background.

I hope for this help.

+3
source share

All Articles