开发者

Sync'ing iOS contacts to application database (What to use as a identifier reference?)

开发者 https://www.devze.com 2023-03-17 02:18 出处:网络
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?

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?

  1. If I use the "Name" as a reference, there might be two names that is the same or the name might change.

  2. 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消