开发者

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?

  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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜