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

Strange ios 5 error in addressbook

I have done the following to get record for user info from address book. - (ABRecordRef)findRecordNSString *)phoneNumber { if (phoneNumber == nil) return nil; ABAddressBookRef addressBook = ABAddressBookCreate(); CFArrayRef all =…
Rahul Vyas
  • 28,260
  • 49
  • 182
  • 256
1
vote
0 answers

ABNewPersonViewController internationalization

I am using ABNewPersonViewController to add new contact in my app, but the it's always in English. How can I change the locale settings so it's possible to display in the language set by the user in the iPhone settings.app? Thanks.
Eric Wong
  • 524
  • 9
  • 21
1
vote
1 answer

Contact image composition like Contacts app

I'm trying to replicate how the Contacts app shows user pictures in my own app, but am at a loss as to how they went about it. Here's how there's looks... ...and (I assume) they are using a combination of these images (from the AddressBookUI…
rob5408
  • 2,972
  • 2
  • 40
  • 53
1
vote
1 answer

How to get iPhone contacts in iPhone application

I want to get all the iPhone contacts in my iphone application.Is it possible?If so how?Anybody please help me.
Priya
  • 29
  • 1
  • 1
  • 2
1
vote
1 answer

Can I create a custom nib for UnknownPersonViewController without using an "undocumented api"?

I'd like to add some custom buttons to an ABUnknownPersonView. Can I use initWithNibName:bundle: in my ABUnknownPersonViewController to load a custom view that I've created in IB, while not using an "undocumented api?" And if I do, how can I make…
Andrew
  • 8,363
  • 8
  • 43
  • 71
1
vote
2 answers

Get cropped photo of person in MonoTouch (on iPhone)

I'm able to get original image of person from address book but I would like to ask, if there is any way how to get cropped image (in case, user has taken a picture and zoomed just some part of it). I found a way, how to do this in…
1
vote
1 answer

Addressbook Save Image for contacts programmatically

I am creating an addressbook application in that all the data are stored to server and when User will ask then server will restore all the contacts to iPhone. My problem is how to send Image to server as well as how I will be able to restore the…
V.V
  • 3,082
  • 7
  • 49
  • 83
1
vote
2 answers

Custom addressbook for ABPeoplePickerNavigationController on iPhone

I am trying to create a custom addressbook on the iPhone by adding new records to the device address book (basically, merging a private contact list with the device AB). I then want to let the user select a contact, which I thought I could do with…
Jeff Hay
  • 2,655
  • 28
  • 32
1
vote
2 answers

Set 2 actions for UIBarButtonItem

Is it possible to register 2 actions for a UIBarButtonItem? Specifically, I am referring to the "Cancel" UIBarButtonItem present in ABPersonViewController. This button has a default action behind it, which I don't want to change, but I would like to…
Alex
  • 7,432
  • 20
  • 75
  • 118
1
vote
1 answer

Primary / Default ABMultiValue property?

I need a user to enter their name, phone number, and email address. To help them out, if they enter any one of the three, I want to look up that value in their Address book and populate the remaining fields. For example, if they enter their name,…
djibouti33
  • 12,102
  • 9
  • 83
  • 116
1
vote
1 answer

Read name of ABSource

I want to read the name of an ABSource in the addressBook framework. Is this possible? The following code sample leaves me with null, while the currentSource pointer is valid. NSString* stringName =…
Martin Reichl
  • 932
  • 9
  • 13
1
vote
1 answer

Remove Cancel Button From Addressbook

I want to show the addressbook as a tabbar item so I defined this code in the delegate for the tab bar: Contacts = [[ABPeoplePickerNavigationController alloc] init]; Contacts.tabBarItem.image = [UIImage…
Fa.Shapouri
  • 988
  • 2
  • 12
  • 30
1
vote
3 answers

Potential Memory Leak for ABRecordCopyValue

I am building an app that requres me to load all the contacts in the datasource of the table from the iPhone AddressBook. On running Build and Analyze for the following snippet ABAddressBookRef addressBook = ABAddressBookCreate(); int nPeople =…
devsri
  • 6,173
  • 5
  • 32
  • 40
1
vote
2 answers

Can i keep my Object in memory till application exits?

I am using Native contact to store in NSMutableDictionary. So whenever required i can query any contact from NSMutableDictionary without going to Native API's (ABAdressBookRef, CNContactStore). My Concern is how long NSMutableDictionary will be…
Kapil_A
  • 125
  • 2
  • 15
1
vote
2 answers

How to create a contact in the "local" addressbook?

I am wanting to create a contact programmatically into the "local" addressbook (so that it doesn't try to synch, which causes some compatibility issues with Exchange). If a local addressbook already exists, I can find it using…
Peter Johnson
  • 3,764
  • 1
  • 23
  • 27