Sync'ing iOS contacts to application database (What to use as a identifier reference?)
how do I determine if the contact is the same contact since there is no identifier/开发者_运维技巧primary key that I could use as a reference?
If I use the "Name" as a reference, there might be two names that is the same or the name might change.
If I use the "Name" + "mobile number" as the reference, then if the mobile number changes, then I will have two records for the same person.
What to do now?
I'm assuming you are using the AddressBook framework.
ABRecord has the uniqueId
property you can use for this.
精彩评论