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
1
vote
1 answer

Automated test ABAddressBook and ALAssetsLibrary request access

I have a large suite of automated tests for my app. I would like to add tests for my wrappers around ABAddressBook and ALAssetsLibrary. However, if these tests run on a simulator that has never accessed either the address book or an asset library in…
1
vote
0 answers

Filter a users contact list of people of known phone numbers using ABAddressBook

For whatever reason I can't find this anywhere, but I am coding an iphone app and am trying to filter a users contact list of people of known phone numbers using the ABAddressBook framework. I want the contacts list, which is a…
Daniel
  • 73
  • 9
1
vote
1 answer

ABAddressBookRequestAccessWithCompletion not working in ios 7

ABAddressBookRequestAccessWithCompletion iOS 7 and semaphores I have checked above link for asking a permission for address book in IOS 7 device but it's not working. Here we are using "ABAddressBookRequestAccessWithCompletion" method to ask a…
1
vote
0 answers

How to be notified about ABPersonSortOrdering changes?

How to be notified when the user changes Settings > Mail, Contacts, Calendars > Sort Order (or Display Order)? I want to reload a table of contacts in my app when the user makes such a change.
meaning-matters
  • 21,929
  • 10
  • 82
  • 142
1
vote
1 answer

Storing kABPersonImageFormatThumbnail for an address book contact

I'm trying to store the thumbnail for a contact in the address book. The following allows me to retrieve both the thumbnail and the full image: ABPersonCopyImageDataWithFormat(contactRef,…
Yasper
  • 501
  • 5
  • 23
1
vote
2 answers

Application crashes while fetching the iPhone's contact list in iOS

I am having the trouble to fetch iPhone contacts. I have tried to fetch the contact by the following code. It is working fine in simulator and also worked fine when the contacts are less in the contact list. In my phone I am having 1000…
Rythm
  • 191
  • 1
  • 16
1
vote
1 answer

Unable to resolve memory leak in CoreFoundation object

I use the following code to remove all contacts I have inserted in the address book, depending on the group they have been added to : ABAddressBookRef addressBook = ABAddressBookCreateWithOptions(NULL, NULL); NSArray* contactsArray = (__bridge…
n00bProgrammer
  • 4,261
  • 3
  • 32
  • 60
1
vote
1 answer

Unable to save contact information to Address Book

I am trying to insert contact information in a specific group in the address group, but I cannot save any values except First Name, Last Name. I am using the following method to save contact information, and the app crashes with no trace (BAD…
n00bProgrammer
  • 4,261
  • 3
  • 32
  • 60
1
vote
1 answer

Can iPhone App access the Notes field in the Contact Book (assuming user allows access to contacts)

Can an iPhone App access the notes field in the Contact Book? I am assuming that the user has permitted the app to allow access to "Contacts" when prompted. Can all available fields in Contacts be accessed?
Kevin
  • 349
  • 1
  • 2
  • 10
1
vote
2 answers

How to fetch contacts from AddressBook and store it in array in iOS 7?

I am trying to fetch contacts from address book and then to store it in an array.I am not able to do this.I checked various posts on stack overflow and i am writing the same code but not able to do? CFErrorRef error = NULL; ABAddressBookRef…
Saurabh Gulia
  • 285
  • 1
  • 3
  • 13
1
vote
0 answers

ABaddressbook use kABPersonCreationDateProperty as Verification if RecordID is different

As I am researching on the solution for the uniqueID of contacts record that will change as this post, I am wondering , will it be a good idea if we use Record Creation date , as a "confirm flag " , if the Record having same Name and same creation…
J.L.
  • 19
  • 3
1
vote
1 answer

Address Book - Select email of Linked contact

I am trying to fetch selected email property in delegate callback mentioned below -(BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person…
1
vote
2 answers

Is it possible to find user’s contacts that also have Apple devices?

Given the iOS Address Book API, or possibly other App Store friendly APIs, is it possible to find the user’s contacts that also use iOS? The only heuristic I was able to come up with was finding all contacts that have a kABPersonPhoneIPhoneLabel…
zoul
  • 102,279
  • 44
  • 260
  • 354
1
vote
1 answer

ABAddressBook APIs stop working after extensive usage of the app?

I'm developing an app that uses the ABAddressBook APIs to list contacts from the user's address book. When a user uses the app a lot (going in and out of view controllers) the ABAddressBook API stops abruptly responding and an error message is…
1
vote
1 answer

What is ABMultiValueAddValueAndLabel outIdentifier?

I've been working around with this AddressBook method and I don't get to understand what is the outIdentifier used for: bool ABMultiValueAddValueAndLabel ( ABMutableMultiValueRef multiValue, CFTypeRef value, CFStringRef label, …
javierfdezg
  • 2,087
  • 1
  • 22
  • 31