Is it posible to retrieve my own contact details from phone book?

你离开我真会死。 提交于 2019-12-12 19:01:32

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!