Alterplay / APAddressBook

Easy access to iOS address book
MIT License
1.38k stars 193 forks source link

Is there a unique property for each user? #146

Closed hcyildirim closed 7 years ago

hcyildirim commented 7 years ago

I think contact.recordID is not a unique property or I do not fully understand, can someone help me?

belkevich commented 7 years ago

@ccoeder APAdreesBook use AddressBook.frameworkand according to the apple's documentation it should be unique.

hcyildirim commented 7 years ago

@belkevich This is what happens when you try it like this:

NSLog(@"%@", contact.recordID);

screen shot 2016-12-06 at 13 55 04

belkevich commented 7 years ago

I don't see any duplicates))

hcyildirim commented 7 years ago

Is that something like auto incerement?

belkevich commented 7 years ago

I don't know for sure, but it looks like auto incremented field in most databases

hcyildirim commented 7 years ago

It's not what I want then. Is there a way I can find the number of the person (the owner of the phone) from within the entire list?

belkevich commented 7 years ago

Sorry, I don't understand. What exactly you want to do?

hcyildirim commented 7 years ago

I am trying to make an application, and in this application I show the user's contacts, I record in the database who is selected when someone selects the user's guide. What I need is the phone number of the person who is using the application so I can distinguish it from the others.

belkevich commented 7 years ago

So, you want to find contact record of iPhone/iPad owner? Unfortunately, APAddressBook doesn't support such functional. But you can try Contacts API. May be it helps

hcyildirim commented 7 years ago

By the way your pod is amazing, thanks!

belkevich commented 7 years ago

Thank you! Happy coding!