Alterplay / APAddressBook

Easy access to iOS address book
MIT License
1.38k stars 193 forks source link

Is RecordID always unique? #169

Open micnguyen opened 6 years ago

micnguyen commented 6 years ago

I have noticed that when I delete a contact from the address book and then adding another contact, that it doesn't overwrite the removed ID and instead adds a new one. Is the recordID for an APContact always unique? I'm trying to sync up a custom domain model to an APContact sych that each APContact represents a 1:1 custom model and am using recordID. Is the record ID similar to that of Identifier in https://developer.apple.com/documentation/contacts/cncontact/identifier?

belkevich commented 6 years ago

I don't think that recordID matches Identifier. APAddressBook is a wrapper on deprecated AddressBook.framework not Contacts.framework.

belkevich commented 6 years ago

But if you try, please, tell us your results