89004

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

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 ?

Answer1:

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.

Recommend

  • Swift Array contains function makes build times long
  • Inconsistency between sequences and seqiplot
  • Relinquish the thread/CPU until async call completes in Akka and Java?
  • SQL Server 2008 INSERT Optimization
  • Implementing IDataErrorInfo using Castle.DynamicProxy in lazy loading scenario using NHibernate
  • Phonegap Android App, open links within app?
  • Launch Internet explorer from xna game on WP7
  • Making mono cross platform support for Task/Intent
  • Operation not supported on read-only collection
  • adb device not listed for Gionee E7 mini
  • Storing WCF rest request data with SQL Server stored procedure
  • How to force refresh on CallLog.Calls.CACHED_NAME column?
  • How to clip image to ellipse in XAML
  • SSRS 2008 - Sorting within a group
  • Retrieving a contacts notes
  • Installing apk from within application in android
  • Submission of new app with iAds
  • How to merge two Request in Laravel
  • Unique SMS sender id?
  • What is the equivalent of Android permissions in iOS development? [duplicate]
  • testing a POST using phpunit in laravel 4
  • Where these are stored?
  • Where can I find tomesh.c?
  • how does System.Web.HttpRequest::PathInfo work?
  • Scala multiline string placeholder
  • Does Mobilefirst provide a provision to access web services directly?
  • MailKit: The IMAP server replied to the 'EXAMINE' command with a 'BAD' response
  • Exchange data b/w iOS devices using Bluetooth 4.0
  • Master page gives error
  • what is the difference between the asp.net mvc application and asp.net web application
  • RestKit - RKRequestDelegate does not exist
  • Matrix multiplication with MKL
  • embed rChart in Markdown
  • How can I remove ASP.NET Designer.cs files?
  • python draw pie shapes with colour filled
  • Is there any way to bind data to data.frame by some index?
  • How to get NHibernate ISession to cache entity not retrieved by primary key
  • How can i traverse a binary tree from right to left in java?
  • How can I use `wmic` in a Windows PE script?
  • Unable to use reactive element in my shiny app