ios – Get the creation date of a contact

Question:

Using the new Contacts Framework in iOS 9, how can I get the contact creation date?

In previous versions, using the Address Book Framework, you could do:

ABRecordRef person = ...
NSDate *creationDate = (__bridge_transfer NSDate *)ABRecordCopyValue(person, kABPersonCreationDateProperty);

but using the new framework I did not find any property in CNContact or any "key" to be able to obtain this value.

Answer:

Friend, definitely accessing that property with the Contacts Framework is impossible as it doesn't exist. The only way is by using the ABF or an ABF wrapper like APAddressBook . Maybe if you generate a ticket to Apple you can report the problem since it is not the only one.

Scroll to Top