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

Geographic address of person selected in person picker (ABPeoplePickerNavigationController), formatted

Showing a person picker with ABPeoplePickerNavigationController, I can get the address of the selected person in a dictionary with this: - (BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker…
Guillaume
  • 21,685
  • 6
  • 63
  • 95
1
vote
3 answers

ABMultiValueRef nil value checking

I am trying to get the home email property of a contact. It works fine, but I'm not sure if I check whether or not I correctly check if the home email property is nil. //Since there are multiple email labels, I iterate through them and check which…
pasawaya
  • 11,515
  • 7
  • 53
  • 92
1
vote
1 answer

ABPersonSetImageData is extremely slow

I am writing an app that interfaces with the iPhone address book. Here is the relevant section of my code (from UIImagePickerControllerDelegate) -(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage…
Matt H.
  • 10,438
  • 9
  • 45
  • 62
1
vote
1 answer

Strange SyncServices / iSync console messages when saving ABAddressBook

I'm displaying and editing an ABPerson with an ABPersonView. I do this like so: ABPerson *person = (ABPerson *)[_addressBook recordForUniqueId:[curDict valueForKey:@"id"]]; [_personView setPerson:person]; [_personView setEditing:YES]; Where…
Maarten
  • 11
  • 2
1
vote
1 answer

getting breakpoint retrieving addressbook data

I am retrieving phoneNumbers and I am getting a breakpoint. I've spent the past few hours trying to fix it, but still no luck. -(void)textMessage{ ABAddressBookRef addressBook = ABAddressBookCreate(); NSMutableArray *array =[[NSMutableArray…
danny huang
  • 155
  • 9
1
vote
4 answers

How to get all phone numbers with labels for all contacts in address book?

I want to get all the phone numbers with diff labels like "iPhone", "home phone", "mobile number", "other numbers" , etc. for a contact stored in iPhone address book. How do I get it? Please help. Thanks in advance. I am trying: which is…
iOSDev
  • 3,617
  • 10
  • 51
  • 91
1
vote
1 answer

Right way to use ABPersonViewController?

I'm pretty new to Objective-C, so I'm sorry in advance if I'm missing something you would consider obvious :) I wrote a simple program to display the Address Book, and select a user(mimicking the iOS Contact list). I have a basic…
Beni Ben Zikry
  • 157
  • 1
  • 2
  • 14
1
vote
1 answer

How to access the phone contact list and display it in tableview?

Such as the Table cell having: Contact image Contact name. I found that we have to use framework: AddressBook.framework AddressBookUI.framework How can I achieve this?
RayofHope
  • 1,187
  • 2
  • 14
  • 30
0
votes
1 answer

Intermittent error accessing core data model / contacts database

I am getting an error in my iOS app. Frustratingly, it is an intermittent error - The task I am performing works 5 or 6 times in a row then crashes unexpectedly. The error log suggests an error opening a sqlite database - presumably the core data…
Ben Thompson
  • 4,743
  • 7
  • 35
  • 52
0
votes
1 answer

IOS: Can I use ABAddressBook to store contact information outside the iPhones Contacts?

I'm wanting to store some contact information and allow the user to call/email the person instead of just looking up the info. I don't want the contacts stored in the user's Address Book in their contacts though. I want to keep it within the app…
daveomcd
  • 6,367
  • 14
  • 83
  • 137
0
votes
2 answers

I get EXC_BAD_ACCESS when calling ABAddressBookRemoveRecord

I have the following method for getting the AddressBook contacts: - (void) scanAddressBook { NSUInteger i; NSUInteger k; ABAddressBookRef addressBook = ABAddressBookCreate(); NSArray *people = (__bridge_transfer NSArray *)…
Kex
  • 776
  • 10
  • 22
0
votes
1 answer

Is there a list of permitted fields for phonegap contacts.find?

I'm looking at phonegap to replace my app. Is there a list anywhere (I've looked and cant seem to find it) of the valid values of fields to be searched var fields = ["*"] ; //what specific fields can I use. navigator.contacts.find(fields,…
Toby Allen
  • 10,997
  • 11
  • 73
  • 124
0
votes
1 answer

When searching ABAddressBook, how do I search for contact names while excluding job titles?

When I search the ABAddressBook for names of contacts, it returns matches that include job titles. For example, let's say I've got a contact named John Smith, and he's a Technology Analyst. If I search for ABAddressBook entries for names that…
bryanjclark
  • 6,247
  • 2
  • 35
  • 68
0
votes
2 answers

Memory leak ABAdressbook

I am getting memory leaks in the following method : - (void) SyncContactData { ABAddressBookRef addressBook = ABAddressBookCreate(); CFArrayRef allPeople = ABAddressBookCopyArrayOfAllPeople(addressBook); CFIndex nPeople =…
Nitish
  • 13,845
  • 28
  • 135
  • 263
0
votes
1 answer

Sort core data using sort descriptors using variable held outside of core data

My Question... Is it possible to sort data using the sort descriptors in a fetchedResultsController by data that isnt stored in core data? My situation... I have a core data stack which includes a entity called 'Client'. One attribute of Client is…
Ben Thompson
  • 4,743
  • 7
  • 35
  • 52