Search code examples
iosswiftaddressbookcncontact

How to get date added or edited contact with CNContact in Swift 3.0


I have array contacts fetched using CNContactStore. I want get date added to addressbook. But when using CNContactDatesKey, result allway is 0. I hope you help.


Solution

  • This is not possible in the new CNContact framework, although it was possible in the addressbook framework , here is a reference, also you can try the method suggested here