Questions tagged [abaddressbook]

The ABAddressBook opaque type provides a programming interface to the Address Book — a centralized database used by multiple applications to store personal information about people. Available on iOS 2.0 or above , and Mac OS X

The ABAddressBook opaque type (whose instances are known as address books) provides a programming interface to the Address Book—a centralized database used by multiple applications to store personal information about people. The Address Book database also supports the notion of a “group” containing one or more persons. People may belong to multiple groups, and groups may also belong to other groups.

The ABAddressBook opaque type provides functions for creating references to the Address Book database, saving changes, discarding changes, and registering for changes made externally (by other threads or processes) to the database.

812 questions
2
votes
2 answers

Error while accessing ABAddressBook

I'm accessing ABAddressBook using the following code: + (void)connectToAddressBook { if(!_addressBook) { CFErrorRef error; _addressBook = ABAddressBookCreateWithOptions(NULL, &error); NSLog(@"Address book %@",…
puzzler
  • 218
  • 3
  • 13
2
votes
1 answer

Edit the Address book First and Last Name Programatically

How can i Edit Specific Address book First Name and Last Name Programatically .Could any one Guide me to found this. Am getting Contact Recode like below. Email = ( "John-Appleseed@mac.com" ); First = John; Last = Appleseed; numbers = …
sabir
  • 626
  • 7
  • 19
2
votes
0 answers

Swift ABAddressBook crashes in production app but not in debug

I'm trying to get a list of all names and phone numbers in my app with Swift. It runs perfectly and I see no errors with a standard debug build however when I pushed to the app store and use the release build, the app always crashes when getting the…
Jimmy Wang
  • 253
  • 1
  • 2
  • 5
2
votes
2 answers

Address book change callback registered with ABAddressBookRegisterExternalChangeCallback is never called (iOS 8)

I've found plenty of examples around this but after reading the entire ABAddressBook documentation I'm still not able to figure out why, in my case, my change callback is not being called. I simply set up an address book and register a callback…
Blixt
  • 49,547
  • 13
  • 120
  • 153
2
votes
1 answer

Create ABPerson Records in a Shared CardDAV (10.6/Server Hosted) AddressBook

My app presently reads and writes to the local Mac OS X 10.6 client addressbook using the AddressBook.framework. It works fine. 10.6 Server introduced AddressBook Server, which 10.6 clients can connect to by setting up a CardDAV Account. User and…
Woodster
  • 3,451
  • 3
  • 17
  • 19
2
votes
1 answer

Swift Crash Extracting Record value from Address Book

I'm using Swift to extract data from the AddressBook. Everything works fine if I build the app using Debug. But if I build the app using a release configuration, it crashing in this function: private func extractProperty(record:ABRecord,…
Aaron Hayman
  • 8,492
  • 2
  • 36
  • 63
2
votes
2 answers

can I add a custom URL to an ABPerson?

I have an app that will use the user's Contacts. One of my objects can contain a mailing address, so I thought I'd connect to an ABPerson in Contacts. What I'd like to do is add a custom URL, one that would be understand my app,…
Dan Morrow
  • 4,433
  • 2
  • 31
  • 45
2
votes
0 answers

Get contact images from Address Book

I'm looking to show contact thumbnails in my app based on email address, similar to what some mail apps do for email conversations. The images will be shown in a tableview. I've tried searching the address book and getting a thumbnail for each…
ebi
  • 4,862
  • 6
  • 29
  • 40
2
votes
1 answer

MachMessagePort error when requesting access to address book

I am trying to load a few contacts from the address book. I create the address book in viewDidLoad and check for authorisation if (!_addressBook) { CFErrorRef error=NULL; _addressBook=ABAddressBookCreateWithOptions(NULL, &error); …
Sudeep
  • 796
  • 6
  • 16
2
votes
1 answer

Swift : Issue with accessing CFDictionaryRef for ABAddressBookRef

I'v collected contact's address information in ObjC as, ABMultiValueRef addressProperty = ABRecordCopyValue(contactRef, kABPersonAddressProperty); CFDictionaryRef dict = ABMultiValueCopyValueAtIndex(addressProperty, 0); if(dict) { …
BaSha
  • 2,356
  • 3
  • 21
  • 38
2
votes
1 answer

How can I create a contact (ABPerson) WITHOUT storing it in the addressbook?

MY GOAL is to allow the users to create a contact using the standard UI (ABPersonViewController) but give them the choice to add it to the addressbook or to store it locally (in my CoreData db). As such, I need to do one of the following: Store a…
2
votes
0 answers

Swift playground - Address book - access denied

Is it possible to test some code relating the address book api in swifts playground? I don't know how to give xcode access to my address book. This is my code: let authorizationStatus = ABAddressBookGetAuthorizationStatus() if (authorizationStatus…
dennis-tra
  • 1,309
  • 1
  • 14
  • 23
2
votes
1 answer

Swift : Issue with saving contact with AddressBook - (Xcode6-Beta5)

When I'm trying to store phone number of my new contact, in first step below let multiPhone : ABMutableMultiValueRef = ABMultiValueCreateMutable(kABMultiStringPropertyType) gives 'int' is not convertible to 'ABPropertyType' may be as, func…
BaSha
  • 2,356
  • 3
  • 21
  • 38
2
votes
0 answers

Is there a way to programmatically create linked contact?

My App needs to save some attributes to the AddressBook, particularly set new URLs for some Contacts. This works well, unless user enables connection to other storages, like Facebook. If my App tries to save URL to a record, that was just exposed…
Nick Entin
  • 1,087
  • 8
  • 18
2
votes
5 answers

Is it possible to check a contact whether it is exits in contact list of iPhone or not?

I am developing an app in which i have to save contact in address book, but if the the contact is already saved in contact then it should not save. But i have no idea is it possible to check a contact whether it is exits in contact list of iPhone…
Prachi Rajput
  • 502
  • 1
  • 8
  • 20