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
10
votes
2 answers

Syncing ABAddressbook-Entries

I have an iPad-appliction that syncs contact with the contacts on server side. How do I detect only that ABAdressbook-Entries that have changed? It is possible, that there occur changes on server-side, in my application, or externally on the…
James
  • 101
  • 4
10
votes
5 answers

How to create vCard/vcf file to use in share sheet?

I'm new to swift and methods I am finding are deprecated regarding my issue. I'm building a directory app and I'm pulling contact data from an API, not from the phone's address book. In iOS, if you go to your address book, you can select a contact…
C. Meadows
  • 145
  • 1
  • 11
10
votes
4 answers

What's the best approach to asynchronous image caching on the iPhone?

I'm creating an iPhone app that will pull data down from a Web API, including email addresses. I'd like to display an image associated with each email address in table cells, so I'm searching the Address Book for images and falling back on a default…
theory
  • 9,178
  • 10
  • 59
  • 129
10
votes
4 answers

Detect what was changed from ABAddressBookRegisterExternalChangeCallback

I am using ABAddressBookRegisterExternalChangeCallback to get the external changes in AddressbookBook of the user. I am using the following code to register the callback: ABAddressBookRef ntificationaddressbook =…
user2435304
9
votes
2 answers

Why would ABAddressbookRef need to be created for each thread?

Apple says: Important: Instances of ABAddressBookRef can not be used by multiple threads. Each thread must make its own instance. But why? I know that some particular class or operations must be done in main thread. And I know some objects are…
Jimmy
  • 1,094
  • 10
  • 22
9
votes
4 answers

Address Book External Change Callback in Swift (with C Function Pointers?)

Original Question (see solution below): I am trying to use the AddressBook.framework in my Swift App, but can't figure out how to implement the ABAddressBookRegisterExternalChangeCallback function. In Objective-C, I just implement the callback as a…
knl
  • 1,404
  • 1
  • 14
  • 21
9
votes
1 answer

Customize "want contacts" prompt?

Is there a way to customize the prompt that appears when my app tries to access the address book? I want to add an explanation of what data I use, and why I need it.
Steven Fisher
  • 44,462
  • 20
  • 138
  • 192
9
votes
2 answers

iOS Address Book - How To Know Which Contact Was Added/Edited/Deleted?

My app needs to store a user's contacts on our servers (given the user's permission of course.) One of it's requirements is to reflect any changes on the devices address book (add/edit/delete) to the server. Is there an easy way/best practice with…
maignacio
  • 173
  • 3
  • 8
9
votes
4 answers

ABAddressBookRegisterExternalChangeCallback called several times

I have a strange problem where I register my iOS-app to listen to changes in the phones address book. The correct method is called when something changes in the address book but it gets called 2 - 6 times. When the object gets created (singleton,…
joakimb
  • 553
  • 1
  • 7
  • 19
8
votes
3 answers

kABPersonEmailProperty returns weird stuff

I am tring to get email address of ABRecordRef like this: ABRecordRef ref = CFArrayGetValueAtIndex( allPeople, i ); NSString *email = [(NSString*) ABRecordCopyValue( ref, kABPersonEmailProperty ) autorelease]; NSLog(@"%@", email); It returning…
sumderungHAY
  • 1,337
  • 18
  • 30
8
votes
2 answers

Search By Number and Get the image using ABAddressBook

I wish to search in the iphone AddressBook through my app using the number as the key and then retrieve the image associated to that contact and display it on the UIImageView. I tried using ABAddressBook framework but was clueless to proceed. Can…
devsri
  • 6,173
  • 5
  • 32
  • 40
8
votes
3 answers

What are the Tags Around Default iPhone Address Book People Phone Number Labels?

My question concerns markup that surrounds some of the default phone number labels in the Person entries of the Contact list on the iPhone. I have created an iPhone contact list address book entry for a person, "John Smith" with the following phone…
rnistuk
  • 103
  • 1
  • 7
8
votes
1 answer

Is it possible to get the current user's address book record?

Assuming the user has granted permission for the app to access contacts, is there any way to determine which record belongs to the phone owner? For example if you browse the list of contacts on your phone, you will see a little "me" beside the…
devios1
  • 36,899
  • 45
  • 162
  • 260
8
votes
3 answers

Crash report when user accesses the address book

In my App, Crashlytics is used to gather crash reports from users. Here is one crash report from a user. It is possibly depending on the contacts informations of the user. I can not recreate the crash, as I do not know what's in his/her contacts.…
lu yuan
  • 7,207
  • 9
  • 44
  • 78
8
votes
1 answer

How to get ABRecordRef from ABRecordID?

I have accessed the address book and success fully extracted the records and necessary info from it. I have also extracted recordid. My problem is how to use this recordid to extract record later. The code which I am using is: ABRecordID…
amar
  • 4,285
  • 8
  • 40
  • 52
1 2
3
54 55