Questions tagged [abperson]

ABPerson is an object in Mac OS X's and iOS' Address Book application. It represents a single contact.

38 questions
7
votes
2 answers

Find User Name or First/Last Name in iOS9 CloudKit / ABPerson (ABAddressBook)

iOS9 deprecates user info features for CloudKit and ABPerson. e.g. in the properties of CKDiscoveredUserInfo firstName" Deprecated in iOS 9.0 lastName" Deprecated in iOS 9.0 I want last name and first name as previously provided in iOS8…
Kevin
  • 828
  • 11
  • 14
7
votes
2 answers

ABAddressBook - How to find if a particular contact is modified or deleted from iPhone's address book?

I am working on a chat app. For which i need to save contacts. So i am saving all contacts from ABAddressBook in my core data entity. Problem is how can i know if a contact is modified or removed from iPhone's AddressBook? So that i will modify or…
Gagan Joshi
  • 3,347
  • 2
  • 21
  • 32
6
votes
1 answer

iOS : Can't get the user email address

I want to get the user mail address, as shown in this thread : Getting user's default email address in Cocoa But when I tried : NSString *theEmailAddressWeWantToObtain = @""; ABPerson *aPerson = [[ABAddressBook sharedAddressBook] me]; ABMultiValue…
Rob
  • 15,732
  • 22
  • 69
  • 107
4
votes
2 answers

How do I read phonebook number labels?

I know how to get the phone number from an ABRecordRef, but what I want now is to also get the type of the number, i.e. its label as a string: const CFStringRef kABPersonPhoneIPhoneLabel; const CFStringRef kABPersonPhoneMainLabel; const CFStringRef…
Alex Terente
  • 12,006
  • 5
  • 51
  • 71
3
votes
0 answers

Assigning a custom date with custom label to a contact

I have an app that from some reason needs to assign a custom date to the user contacts, The app was out and worked fine. Now I wish to build a swift version of the app. While testing it on xCode 6, iOS7 + 8 everything looks great, but when testing…
shannoga
  • 19,649
  • 20
  • 104
  • 169
3
votes
2 answers

ABPerson: How to get person's home and work phones (not the FAX ones)

I want to know if it's possible to extract a contact's Home Phone Number and Work Phone Number, instead of their Home FAX or Work FAX. If not, why is this a restriction? The reference only mentions the following constants: const ABPropertyID…
Berbare
  • 144
  • 1
  • 8
3
votes
1 answer

Multiple valueForKey: calls give different results than valueForKeyPath: using same keys

In OS X (Mac 10.8.2) I have added a category to ABPerson to return phone numbers as an array of Phone objects. The Phone object has two properties, label and value. I want to get all phone numbers and filter them to include only those whose label…
Jon
  • 1,469
  • 1
  • 14
  • 23
3
votes
2 answers

Crash when grabbing specific ABPerson's image

I am grabbing images from the users' contacts in their iOS Address Book/Contacts.app. And putting them in a dictionary to upload as JSON. I am getting the following error: 2012-12-05 10:38:01.286 ContactsApp[6247:713f] *** Terminating app due to…
runmad
  • 14,846
  • 9
  • 99
  • 140
3
votes
2 answers

IOS retrieve properties from an ABPerson

I should retrieve/extract all the available properties of an ABPerson. The official documentation for IOS ABPerson Don't include the MACOS available method [ABPerson properties] What can i do?
user1651591
3
votes
0 answers

Way to modify Contact's ringtone via ABPerson class iOS?

So I've been toying around with the AddressBook framework on iOS and have noticed in the ABPerson class, pretty much every attribute of a contact is listed as a constant (ref: apple documentation). However, one attribute I notice is missing is the…
2
votes
2 answers

Complex usage of Address Book search elements via Cocoa

I'm trying to use the ABPerson method searchElementForProperty:... to create a moderately complex search. In particular, I want to find the set of people who have an email address that ends with "foo.com", and are NOT part of the pre-populated…
Tony Li
  • 106
  • 7
1
vote
0 answers

Set ABPerson custom ringtone

is there any way at all to modify a contact's ringtone in swift/objective-c iOS. I've already searched for a possible solution without any luck. (PRIVATE APIs are not counted as solutions). GRingtones is an app that is able to do what i want but no…
Med Abida
  • 1,214
  • 11
  • 31
1
vote
1 answer

CLPlacemark addressDictionary keys on iOS 9

Reading the documentation, Apple points to ABPerson for the keys to use on CLPlacemark's addressDictionary. But since iOS 9, ABPerson is deprecated. Is there something else to use for the keys ?
Matthieu Riegler
  • 31,918
  • 20
  • 95
  • 134
1
vote
1 answer

Match AddressBook Records from IOS & OS X?

Is there a way to match a unique identifier from a ABPerson record on OS X to one on IOS ? At first glance I cannot get the same id from the same person on my address book. For starters, on the mac the property kABUIDProperty is of type string, and…
the Reverend
  • 12,305
  • 10
  • 66
  • 121
1
vote
0 answers

peoplePickerNavigationController didSelectPerson not called for Linked Contacts

When a user taps a Linked Contact's property using the ABPeoplePickerNavigationController - neither- (void)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker didSelectPerson:(ABRecordRef)person…
YogevSitton
  • 10,068
  • 11
  • 62
  • 95
1
2 3