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

Memory leak in ABRecordCopyValue

I am building an app that requires me to pick first name and last name from contact. On running with Build Analyser I got memory leak in this chunk of codes. ABMutableMultiValueRef fName = ABRecordCopyValue(person,…
iCoder4777
  • 1,682
  • 1
  • 14
  • 35
2
votes
2 answers

In iOS, what's the fastest way to load a sorted list of contacts?

When implementing a view similar to an ABPeoplePickerNavigationController, I'm not able to sort the list very quickly. The native contacts app loads the list instantly. I'm dealing with 4000+ contacts, so keeping load times down is important. I…
Stephanie
  • 23
  • 3
2
votes
0 answers

ABAddressBook contacts not syncing with icloud correctly

I have an app that adds over 300 contacts to the address book. If I turn around and delete them right after they are added, they dont get fully removed from icloud. They get deleted from the local addressbook initially, but they still get…
Marty
  • 162
  • 6
2
votes
1 answer

Allow access to iPhone contact for my app in iOS 5.0

In my application I am accessing phone contact of iPhone so it will ask first time to allow access,but if user will click on "Don't allow" than application will not be able to access phone contact. I know that in iOS 6.0 there is a option of privacy…
Aakil Ladhani
  • 984
  • 9
  • 32
2
votes
2 answers

Getting NSContactsUsageDescription to work in 10.8.2

I have an app with a crash reporter that autofills in the user email address by getting it from ABAddressBook. I'm trying to get an informative message of intent in the dialog that 10.8 displays asking the user for permission. Following the advice…
c-had
  • 1,380
  • 1
  • 9
  • 18
2
votes
2 answers

Programmatically launching OS X's Contacts app showing a contact?

Let's say that I've just created an ABPerson record and managed to save it in the user's address book. How do I programmatically open the default application which handles the address book (which most likely is Contacts but in some cases it might be…
adib
  • 8,285
  • 6
  • 52
  • 91
2
votes
2 answers

iOS Getting selected contacts' email address in array

What I'm trying to do is show the people picker to the user, make him select all the contacts he wants, and finally get all those contacts' email addresses in an array. The best would be showing only contacts with email to the user. Until now the…
Aleph72
  • 877
  • 1
  • 13
  • 40
2
votes
1 answer

Programmatically create a group in contacts

How to programmatically add a new group to the iPhone contact using AddressBook framework?
Mary
  • 335
  • 4
  • 14
2
votes
0 answers

How to take a diff of app contacts against phoneBook or diff of 2 ABAdressBookRef's?

I have a contact book on my application and need to sync those contacts with server cum phonebook regularly. Rather taking total phoneBook to update app's contacts, I am thinking of diff of changed contacts for which I didn't find a functionality…
Venkatarao N
  • 245
  • 3
  • 14
2
votes
1 answer

How to pass all contacts from iphone (simulator) to a table?

I'm a noob on IOS, and I'm trying to pass all contacts from iphone (simulator) to a table. I've followed some tutorials, but I'm getting an error. Can you help me with that? I've tried it: #import…
88fsantos
  • 393
  • 1
  • 7
  • 22
2
votes
2 answers

contact notes are not transferred when exporting/importing via the built-in vCard representation methods

Using the ABPersonCreateVCardRepresentationWithPeople method for export, and the ABPersonCreatePeopleInSourceWithVCardRepresentation for import, I have successfully transfered contact data between devices. However, the data in the contact's "notes"…
bee8ee
  • 346
  • 1
  • 12
2
votes
2 answers

Complex usage of Address Book search elements via Cocoa

I'm trying to use the ABPerson method searchElementForProperty:... to create a moderately complex search. In particular, I want to find the set of people who have an email address that ends with "foo.com", and are NOT part of the pre-populated…
Tony Li
  • 106
  • 7
2
votes
0 answers

Identify the type of an address book record [internal or LDAP] using Cocoa

The MacOS X address book allows to subscribe to vCards/records using LDAP. I need to know, if there exists a well documented Cocoa-based way to identify, if a records comes from LDAP or address book's own / local SQLite DB. In case no official way…
SteAp
  • 11,853
  • 10
  • 53
  • 88
2
votes
1 answer

Using ABAddressBook.GetPerson to retrieve the ABPerson returned by ABPeoplePickerNavigationController

I am using ABPeoplePickerNavigationController to allow the user to select an ABPerson from their address book. I import some data from that contact. I would like to update a field in that ABPerson to indicate that I've already imported data from…
Omri Gazitt
  • 3,428
  • 2
  • 21
  • 27
2
votes
1 answer

Is this the right way to delete a contact from the iPhone?

I am trying to delete a contact from the iPhone which I have created. I tried to find a good working example of deleting a contact, however didn't find one. Adding a contact seemed quite easy but deleting one seems hard. The following code does not…
Max
  • 572
  • 2
  • 6
  • 23