Ask Your Question
0

What is the process of verifying if a CNContact was modified after my iOS application last saved it in the contact store?

asked 2022-03-11 11:00:00 +0000

huitzilopochtli gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2021-08-03 03:00:00 +0000

bukephalos gravatar image

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.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2022-03-11 11:00:00 +0000

Seen: 11 times

Last updated: Aug 03 '21