问题
I am using the CNContact
framework to get all of the contacts from my phone and I need to compare some data with my own contact details.
Is it posible to get my own contact details ? I can find myself listed when retrieving the contacts using apple framework, but I don't know how to identify me .
Any ideas ?
回答1:
There is no way to ask the SDK for the contact of the phone's owner. If you have some information about the owner (like name), then your best bet is to query for contacts with a CNContactFetchRequest
using what information you have.
来源:https://stackoverflow.com/questions/33711273/is-it-posible-to-retrieve-my-own-contact-details-from-phone-book