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
0
votes
0 answers

code for fetching contacts is not working on iphone 5 but its working fine in iphone 4

I have developed an app which is fetching contacts from iphone its working fine in iphone 4 but it is failed to do the same in iphone 5 . view did load-------- ABAddressBookRef addressBook = ABAddressBookCreate(); CFErrorRef myError = NULL; …
Saurabh Mishra
  • 881
  • 1
  • 8
  • 22
0
votes
1 answer

iOS7 Adding a new contact causes delays that didn't happen in iOS6

I am adding a contact to the address book the standard way and have been for months, since updating my app from iOS6 to iOS7 I have noticed that when adding a new contact to the address book there is a delay after I think with updating the UI. I use…
Sean Lintern
  • 3,103
  • 22
  • 28
0
votes
1 answer

How to write Facebook/Twitter to address book in iOS?

In my app I export some data to the address book in order to create some new contact entries. I can export everything I want to without problem, except Facebook and Twitter addresses. I'm completely lost on these two. Here's some code I'm using to…
Kent
  • 1,705
  • 3
  • 16
  • 26
0
votes
0 answers

Most Efficient Way to Download and Insert 15,000+ Contacts Into iOS

I'm currently working on an app that downloads a substantial number of contacts through a web service and inserts the parsed data into the iOS address book. Because it's not unheard of for the users of the app to have 10-15 thousand contacts, my…
prestona
  • 93
  • 1
  • 6
0
votes
3 answers

Crash when releasing ABAddressBookRef

I have this code that enumerates address book contacts - +(void)enumerateAddressBookContacts:(void(^)(NSString *name, NSArray *phoneNumbers, NSArray *emailAddresses, NSData *imageData, NSString *recordId))enumerationBlock failure:(void (^)(…
shannoga
  • 19,649
  • 20
  • 104
  • 169
0
votes
4 answers

kABPersonFirstNameProperty... trowing EXC_BAD_ACCESS

Im reading the address book contacts... everything goes well until I test a contact with no First Name ( Since I can create a contact with just an email or a phone or wathever....). The code (reduced) is this: - (NSMutableArray *) getContactsInfo…
0
votes
0 answers

Execution is stopped with AddressBook Code in iOS during First Install of App

I want to retrieve contacts from AddressBook into my App. The code is having problem for first install, next time onwards it is working fine. For the first installation of App, if AddressBook code executes, the App hangs. After execution of…
Sudheer Kumar Palchuri
  • 2,919
  • 1
  • 28
  • 38
0
votes
1 answer

iOS contacts programatically - do I need ABUnknownPersonViewController?

My iPad app collects some user data, including name, address, phone, etc. I have a button that allows the user to create a new contact from this collected data. Right now, my code creates a contact record (ABRecordRef) and sets some values…
Kent
  • 1,705
  • 3
  • 16
  • 26
0
votes
0 answers

How to add city/state/country to a contact that already exists in iPhone

How do I add city/state and country to an existing contact in the address book? I haven't worked with address book until now. The app is supposed to run through the entire address book and if there is no address there will be an option to add it…
0
votes
1 answer

Get iPhone iCloud mail address from Address Book

I can get home (from kABHomeLabel), work (from kABWorkLabel), other (from kABOtherLabel) mail addresses. But I can't figure out how to get iCloud mail address from Address Book. EDIT: Complete answer (thanks to Paulw11): ABMultiValueRef emailsRef =…
Victor
  • 914
  • 12
  • 15
0
votes
3 answers

Asking the user for access to their contacts in the address book

I have a view controller where I am trying to access the user's address book on viewDidLoad. When the user lands on the view controller, I want to have an alert window popup asking them if the app can access the contacts in their address book, and…
user3344977
  • 3,584
  • 4
  • 32
  • 88
0
votes
2 answers

When new contact is added to address book on iPhone, it's first name property NSLogs as null

I have an app that is accessing the address book. The app programatically accesses the address book on viewDidLoad, pulls all of the contacts, and places their first names into an NSString object called firstName. For some reason, if I stop using…
user3344977
  • 3,584
  • 4
  • 32
  • 88
0
votes
1 answer

How to get Custom label and value of the Email in ABAddressBook

In AddressBook of iPad,when i am trying to add a email, I have an option to set my own Custom Label and give the email, Problem: I am not able to fetch that particular label and its value, I am able to get other,iCloud,home,work email IDs from…
iOSDev
  • 412
  • 10
  • 30
0
votes
1 answer

Why are some records in the Mac OS Addressbook read-only?

My app loops over all of my contacts in my Mac OS (10.9.1) address book (contacts.app) and wants to update some property. But with some records I can't do that - because the record is read-only (for example Error Domain=ABAddressBookErrorDomain…
Maximilian Tyrtania
  • 437
  • 1
  • 4
  • 14
0
votes
1 answer

Read kABPersonHomePageLabel from contact

I'm trying to access the homepages/websites from the users contacts on a iPad. I'm actually trying to modify an existing script that is used as a Native Extension for Adobe Air -…