Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

The process of verifying if a CNContact was modified after your iOS application last saved it in the contact store involves the following steps:

  1. Retrieve the latest version of the contact from the store using its identifier.

  2. Compare the last modification date of the retrieved contact with the last modification date stored in your application.

  3. If the modification date of the retrieved contact is later than the date stored in your application, then the contact has been modified after your application last saved it.

  4. If the modification date of the retrieved contact is earlier than or equal to the date stored in your application, then the contact has not been modified.

  5. Update the date stored in your application with the new modification date of the contact if the contact has been modified.

  6. If you need to update the contact, make the necessary updates and save the changes to the contact store.