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

How to get know own contact while fetching Address book Iphone

In my app i show the contact list by fetching address book in a Table View.I want to show a 'Me' Label in front of My Contact name which have my own no.like iphone native app. How to get know it while fetching address book thanks
user100
  • 327
  • 5
  • 19
1
vote
1 answer

kABPerson*Property "constants" not initialized

This little gem cost me a couple of hours of debugging so I thought I'd post the problem (and solution) here. I'm creating an Array of address book constants (kABPerson*Property) that I later use for extracting contact data. Surprisingly, the values…
Ethan
  • 486
  • 1
  • 6
  • 15
1
vote
1 answer

disable add fields option while editing contacts in iphone

I have a query regarding AddressBookUI ABPersonViewController *personController=[[ABPersonViewController alloc] init]; ABAddressBookRef addressBook=ABAddressBookCreate(); //ABRecordRef aRecord=ABAddressBookGetPersonWithRecordID(addressBook,…
Ankit Sachan
  • 7,690
  • 16
  • 63
  • 98
1
vote
1 answer

accessing kABPersonURLProperty from address book

I am trying to access kABPersonHomePageLabel. From my understanding first i have to access a dictionary generated by calling this property kABPersonURLProperty as i did below. when i am NSloging the web instance i get this log : 2013-10-09…
orthehelper
  • 4,009
  • 10
  • 40
  • 67
1
vote
0 answers

ABRecordRef how to link to existing contact programatically?

OK, maybe I've missed it. But if I create a new contact thus: ABRecordRef newPerson = ABPersonCreate(); Then set them up with what ever details, what do I call to link this contact to an existing contact, say ABRecordRef exisitingPerson ? Or…
Aardvark
  • 608
  • 5
  • 15
1
vote
1 answer

Is it possible to limit fields in address book that can be edited?

In writing an app for iPhone/iPad, I like to restrict the fields within the Address Book that can be edited. As an example, each contact has a name, phone number(s), email(s), and an address. I'd like to allow editing of just the phone number(s) and…
Michael Young
  • 414
  • 1
  • 7
  • 16
1
vote
1 answer

Set image for contact iOS

I am using ABPeoplePickerNavigationController for representation table of contacts. By tapping contact I need to set new image for it. I added code to delegate for changing person data, but can't change image. Any suggestions? This is my code…
Matrosov Oleksandr
  • 25,505
  • 44
  • 151
  • 277
1
vote
1 answer

iOS Simulator does not show permission alert

My app uses Address Book framework. To show all contacts in iOS 6 or higher I have to set permission for it. At first time when I was running my app on the simulator I saw this alert below, but when I try to show it again I don't see the alert one…
Matrosov Oleksandr
  • 25,505
  • 44
  • 151
  • 277
1
vote
1 answer

ABAddressBookRef memory leak

I am using the following code to initialize the address book in my application :- @property(nonatomic,assign) ABAddressBookRef addressBookRef; self.addressBookRef=ABAddressBookCreateWithOptions(NULL, NULL); However, the xcode analyzer is giving me…
Max
  • 4,067
  • 1
  • 18
  • 29
1
vote
1 answer

ABPeoplePickerNavigationControllerDelegate: shouldContinueAfterSelectingPerson giving bad ABMultiValue id with email addresses

This works fine when I select contacts that have multiple phone numbers, and pick one of their phone numbers, recipientAddress is set to the selected phone number. But when I select email addresses from contacts having multiple email addresses, the…
SafeFastExpressive
  • 3,637
  • 2
  • 32
  • 39
1
vote
2 answers

Getting all group names in Contacts

How can I get all group names that is saved inside the contacts? Below is my code for your reference: NSMutableArray *list = [NSMutableArray array]; ABAddressBookRef myAddressBook = ABAddressBookCreate(); CFArrayRef allSources =…
jettplaine
  • 45
  • 1
  • 6
1
vote
1 answer

Is it possible to let ABPersonViewController display only a multivalued property with a specific label?

Assuming, I have an ABAddressBook with a person record that has a valid work address and an invalid home address. I want to use an ABPersonViewController to let the user correct the invalid address. An ABPersonViewController has a property…
Reinhard Männer
  • 14,022
  • 5
  • 54
  • 116
1
vote
1 answer

iPhone Address Book data comes with strange chars in hebraw

Im reading the iPhone Address book and getting strange data that brake the json i'm trying to send to server' the retrieving code is this: CFErrorRef * error = NULL; ABAddressBookRef addressBook = ABAddressBookCreateWithOptions(NULL,…
Shimon Wiener
  • 1,142
  • 4
  • 18
  • 39
1
vote
1 answer

ABAddressBookRef in singleton

I have several calls to ABAddressBookCreate() in the app I'm working on. For iOS >=6 compatibility I thought to use a singleton to check for access to the address book and to return a ABAddressBookRef from the singleton. However I'm not sure how…
Dan
  • 173
  • 2
  • 18
1
vote
0 answers

ABAddressBook: trouble getting a Person's image

I'm having an issue with ABRecordRef's stored in an array. This seems very similar to the issue in this stackoverflow. However, instead of just finding a workaround, I am looking to figure out what the issue is. I have a feeling that I am just…
mahboudz
  • 39,196
  • 16
  • 97
  • 124