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

App crashes if Last Name in Contacts is empty for iOS 5 +

I am trying to retrieve contacts from address book & display it in table view with indexed list same as Contacts app in iOS. I am sorting contacts on LAST NAME. If last name is empty then my app crashes. Here is my code -…
iOSAppDev
  • 2,755
  • 4
  • 39
  • 77
1
vote
1 answer

Accessing the date on which a contact is added to iPhone's Address Book using AddressBookUI

Using AddressBookUI for iOS, how can I access the date a contact is added to iPhone's address book? I have downloaded an app on iPhone that shows the date contacts are added so I know for sure those info is somewhere. But I could not find out how to…
Dogahe
  • 1,380
  • 2
  • 20
  • 50
1
vote
1 answer

ABPersonSetImageData Does Not Set Contact's Full Size Image for Incoming Calls

I am able to set a new contact's thumbnail image in the iPhone address book, however, the phone does not display a full screen version when that contact calls my phone. Instead, it only displays the thumbnail version on top of the screen, with my…
JRoss
  • 177
  • 10
  • 23
1
vote
0 answers

On Snow Leopard, why is -[ consumeImageData:forTag:] not being called after [ABPerson beginLoadingImageDataForClient:] is called?

I'm trying to load image date for person entries in the shared ABAddressBook. In particular, I'm calling -[ABPerson beginLoadingImageDataForClient:] and passing as the argument an object which adopts ABImageClient and…
Nate Chandler
  • 4,533
  • 1
  • 23
  • 32
1
vote
2 answers

Save NSString from CFStringRef. ARC

I'm trying to save firstName and lastname. NSLog(firstName); prints correct value from addressbook, but _dossier.firstName is empty. Image is saving correctly. ABAddressBookRef addressBook = ABAddressBookCreate(); for (TKAddressBook *ab in…
Shmidt
  • 16,436
  • 18
  • 88
  • 136
1
vote
1 answer

can't save contact on device using address book - xcode

I've found a code to save a vcard to the device. This code works perfect on the simulator, but when trying the code on a device, I don't see the new contact. The code is: NSString *vCardString =…
NDM
  • 944
  • 9
  • 30
1
vote
1 answer

ABPersonViewControllerDelegate shouldPerformDefaultActionForPerson not working

For some reason, my shouldPerformDefaultActionForPerson function never gets called, in the simulator and the device. Could someone look at this and tell me what I'm missing? From all the examples I've found, I can't see what I'm doing wrong. Here is…
eshrickus
  • 11
  • 1
1
vote
1 answer

How to edit email & phone number values programmatically from addressbook in iOS 5 +

I want to email & phone number values programmatically from addressbook in iOS 5 +. I tried following code. It changes the first name & last name but not the email & phone number. Here is my code ABAddressBookRef…
iOSAppDev
  • 2,755
  • 4
  • 39
  • 77
1
vote
1 answer

Not receiving kABDatabaseChangedExternallyNotification upon disabling syncing contacts from Facebook account with the ABAddressBook

Normally, when contacts are added to or removed from the shared address book, the kABDatabaseChangedExternallyNotification notification is posted. However, when one disables automatically pulling Facebook contacts into the address book, this…
Nate Chandler
  • 4,533
  • 1
  • 23
  • 32
1
vote
1 answer

Collecting iOS Phone Book Contacts

With introduction of iOS 6, I read apple added Contacts privacy settings as explained here. However, in prior iOS versions, this setting is not present and user privacy is at risk especially after people realized that 'Path' was dumping iOS contacts…
atastrophic
  • 3,153
  • 3
  • 31
  • 50
1
vote
1 answer

How to display the selected contact person (selected from address book: ABPickeView ) name as well along with the number in the text filed

I have implemented an iPhone app.. in that i have two options 1. Send SMS 2.Send email in a page. I implemented both functionalities and Implemented code to get address book when taping on contacts text fields or on a discloser button. From hte…
user1645721
  • 653
  • 2
  • 8
  • 18
1
vote
1 answer

Programmatically embed ABPersonPicker (UIAddressBook) in UITabBarController

I would like to display a UIAddressBook inside my UITabBarController (which is also embedded in a UINavigationController) instead of displaying it modally every single time. In other words, I would like to access an address-book inside an…
Diremage
  • 200
  • 1
  • 2
  • 10
1
vote
2 answers

Efficient way to retrieve contacts by email and phone number in ios

I am building an autocomplete feature for an ios application. After getting all the contacts in CFArrayRef. What would be the most efficient way to retrieve the contacts by email and phone number given a search string.
VBK
  • 1,435
  • 1
  • 15
  • 34
1
vote
1 answer

How to (easily) update an ABPerson object with a vCard and keep its unique ID?

The AddressBook Framework offers a great method for initializing an ABPerson with a vCard, by using the initWithVCardRepresentation: method. What I want to do is update a contact with a certain vCard. I can't use initWithVCardRepresentation: because…
Alex
  • 7,432
  • 20
  • 75
  • 118
1
vote
0 answers

ABAddressBook -- Search Exchange AddressBook Source?

I'm trying to create an app with a custom interface for searching through one's addressbook. Searching the local addressbook seems easy, but I cannot figure out how to search for a person/record in an Exchange addressbook source (i.e. ABSourceType…
RyanM
  • 5,680
  • 9
  • 45
  • 55