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
0
votes
1 answer

How to fetch contact image from ABAddressBook API asynchrously?

I'm reading contact's image from c ABAddressBook API like this: NSData *photoData; ABRecordRef personRef = ABAddressBookGetPersonWithRecordID(bookRef, ID); // Photo data if (ABPersonHasImageData(personRef)) { photoData = (__bridge_transfer…
fillky
  • 591
  • 2
  • 6
  • 18
0
votes
0 answers

Addressbook authorizated

in my app import contacts, but for authorize the user use: log is empty. what is the error? solution? var error:Unmanaged? = nil let addressBook: ABAddressBookRef? let status = ABAddressBookGetAuthorizationStatus() if status ==…
dario91sr
  • 39
  • 1
  • 6
0
votes
1 answer

ABAddressBook does not have a member named 'removeRecord'

In case it helps others, I found that Apple's iOS doc is wrong in that the removeRecord method is not supported in XCode 6.1, resulting in the title error This does not work var adbk: ABAddressBook! //then assign it in some other code var…
John Kucera
  • 314
  • 3
  • 15
0
votes
1 answer

ABAddressBookCopyArrayOfAllPeople Slow

I am writing an app where I need to read the user’s address book and display a list of all his contacts. The iPhone I’m testing with has ~ 100 contacts and it takes really much time to load the contacts. ABAddressBookRef addressBook =…
user3807877
  • 123
  • 1
  • 8
0
votes
2 answers

Search Contact name from ABAddressBook using NSPredicate for iOS

I am creating Custom phone book. In search bar functionality i need to search specific contact using text entered. so what predicate should i write which will filter Array from Addressbook Array of type ABrecord? it should be something like name…
Sambhav
  • 15
  • 5
0
votes
1 answer

ABAddressBook changes listener

Is there a way to be notified when the addressbook is being changed? i.e. When a user is editing a contact phone number. The reason I ask this is because my app has a contacts table of its own from users I pull out of the addressBook. I want to know…
Nimrod Shai
  • 1,149
  • 13
  • 26
0
votes
1 answer

Create ABPersonRef that is local only - i.e. not synced to exchange

I am working on a contact management application that syncs contact data from Microsoft Exchange. I would like to be able to create contacts in the iOS address book that are local contacts only - i.e they will exist only on the device and will not…
Lee
  • 3,996
  • 3
  • 33
  • 37
0
votes
1 answer

Access Contacts on ButtonAction and perform Segue

Hi I'm currently working on a project for a customer where i need to access the phones contacts. I managed to ask for the Permission to access the contacts and i m handling the two different states (granted, denied). Apparently the customer wants…
d3p0nit
  • 442
  • 5
  • 16
0
votes
1 answer

ABNewPersonViewController to save contact locally

I have looked all over SO and elsewhere and I suppose what I am trying to do is not possible. I am wondering if its possible to use ABNewPersonViewController to create a person and save it locally (i.e. not in the address book but as a file). Or if…
JeffN
  • 1,575
  • 15
  • 26
0
votes
1 answer

ABAddressBookGetPersonWithRecordID return nil

My app stores the AddressBook recordIds of Contacts with the same name and later tries to present the addresses to the user to select the desired person. However, when I use the stored recordIds with ABAddressBookGetPersonWithRecordID, it returns…
guinnessman
  • 65
  • 1
  • 5
0
votes
1 answer

iOS:Edit Addressframework

i am developing a appllication for getting contacts list .For that purpose i need get all the contact data and it should be displayed in the tableview.By referreing quick contact example provided by apple i am able to get the data. But my question…
0
votes
2 answers

Can't save address to ABRecordRef

I'm trying to add an address to picked contact: - (void)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker didSelectPerson:(ABRecordRef)person{ // Adding address …
Shmidt
  • 16,436
  • 18
  • 88
  • 136
0
votes
2 answers

How do you programmatically edit a property on an ABUnknownViewController after it has been pushed on the navigationController?

So, I have an ABRecordRef that I've defined all the necessary properties (name, number, address, image, etc). This RecordRef has been added to a ABUnknownPersonViewController...then pushed to the stack. [[self navigationController]…
ed_is_my_name
  • 601
  • 3
  • 9
  • 24
0
votes
1 answer

ABAddressBookCopyArrayOfAllPeople not getting contacts stored on SIM Card

I'm using the code provided from the accepted answer at Retrieve all contacts phone numbers in iOS and I've noticed a lot of contacts are missing. I'm pretty sure they're contacts stored on the SIM card and somehow ABAddressBookCopyArrayOfAllPeople…
Michael Bates
  • 1,884
  • 2
  • 29
  • 40
0
votes
1 answer

application crashes at ABMultiValueRef

I am trying to access address book emails of iPad. The part of code is : ABAddressBookRef addressBookRef = ABAddressBookCreateWithOptions(NULL, NULL); ABRecordRef recordRef = ABAddressBookCopyDefaultSource(addressBookRef); CFArrayRef arrayRef =…
Raju
  • 441
  • 1
  • 6
  • 17