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
3 answers

Access contact image from address book based on name

Err,I have been pulling my hair thinking about a way from quite a few days.I have retrieved all contacts names and placed in an array using dictionary. What I have is a model class holding a list of names,now I want to search the location of name in…
Eshwar Chaitanya
  • 942
  • 2
  • 13
  • 34
1
vote
1 answer

prepopulated fields in new contact form in iPhone and done button will save contact

I am having difficulties adding fields programatically in new contact form of iPhone. I am able to open the new contact form by seeing the example "Quick Contact" however I don't know how to add the details in field so that the user don't have to…
Saty
  • 2,563
  • 3
  • 37
  • 88
1
vote
0 answers

ABAddressBookRegisterExternalChangeCallback not called on app termination?

ABAddressBookRegisterExternalChangeCallback working case: Press home button going to background change in native contact book (add,remove,change), (open app)comes to foreground ExternalChangeCallback…
Abdul Rauf
  • 11
  • 3
1
vote
1 answer

Memory crash with ABNewPersonViewController using ARC

I have faced problem when I using AddressBook framework (Core Foundation) which make memory crash for a NSMutableDictionary variable using to set phone number and another fields in address book such as email below. This case happen as a first time…
wod
  • 812
  • 1
  • 10
  • 23
1
vote
0 answers

Find out which phone numbers are local in ABAddressBook

I'd like to show the user a list of their contacts (using ABAddressBook) that are only in the user's current locale so the user doesn't incur any international texting fees. For example, if the user has a phone in the USA only USA phone numbers…
teradyl
  • 2,584
  • 1
  • 25
  • 34
1
vote
1 answer

ABAddressBookRegisterExternalChangeCallback in the controller not called on done edit

I have a couple of questions related to address book and ABAddressBookRegisterExternalChangeCallback. addressBook = ABAddressBookCreateWithOptions(NULL, &error); I am opening a new contact record with allowsEditing = YES add it to…
kos
  • 1,357
  • 9
  • 21
1
vote
2 answers

How to add website to iphone/ipad address book?

how can i add a website to the contacts of the iphone/ipad address book? I managed to add email, phone numbers, but i cannot did the same with a site. Presently, i'm using this code to have the site written in the address book and displayed, but…
Sasha Grievus
  • 2,566
  • 5
  • 31
  • 58
1
vote
1 answer

How to edit a record on ABAddressBook

I want to be able to select a record from the ABPeoplePickerNavigationController and then add an email to that contact but from my view controller. I tried to search on the ABAddressBook class reference to see what I can do but had no insights =/ I…
Andre Cytryn
  • 2,506
  • 4
  • 28
  • 43
1
vote
0 answers

Get specific record thats updated?

I'm trying to know which record update in AddressBook to modify it in my app. Because if user have many contacts that will let the app get slower so I need to know how to get the specific one that update? ABAddressBookRef book =…
Omarj
  • 1,151
  • 2
  • 16
  • 43
1
vote
2 answers

What design pattern should I use for building a cross OSX and iOS library?

I'm trying to build a library that has convenience methods for dealing with the iOS and OSX AddressBook frameworks (Contact List on iOS and Contacts on OSX) and includes such methods as: (BOOL)addressBookContainsRecordWithID:(NSString *)recordID…
Alex
  • 7,432
  • 20
  • 75
  • 118
1
vote
2 answers

iOS address book predicate

I am getting an array of all the contacts in address book as so: NSMutableArray *records = (__bridge NSMutableArray *)ABAddressBookCopyArrayOfAllPeople( addressBook ); What format would a predicate be in for say the first name of a contact? I…
John Lane
  • 1,112
  • 1
  • 14
  • 32
1
vote
1 answer

iOS - ABAddressBook - filtering using a predicate

I have a question regarding the predicate I am using in the following code NSMutableArray *records = (__bridge NSMutableArray *)ABAddressBookCopyArrayOfAllPeople( addressBook ); NSPredicate *predicate = [NSPredicate…
John Lane
  • 1,112
  • 1
  • 14
  • 32
1
vote
1 answer

iOS how to get Email contacts from Mails app?

My application needs to send email to friends. I found that Mail application has much more Email address than the Contact app. In Mail app or MFMessageComposeViewController, I can search for email dress from any mail that contact me before. My…
KONG
  • 7,271
  • 6
  • 28
  • 27
1
vote
1 answer

Why can I access the iPhone address book contacts without being prompted?

ABAddressBookRef addressBook = ABAddressBookCreateWithOptions(nil, nil); ABAddressBookRequestAccessWithCompletion(addressBook, ^(bool granted, CFErrorRef error) { NSArray *folks = (__bridge NSArray…
quantumpotato
  • 9,637
  • 14
  • 70
  • 146
1
vote
2 answers

Objective-C – ABMultiValueRef get type (ABAddressBook)

I'm trying to figure out what kind (home, mobile, fax and so on) of phone number but I can't figure out how to do it with the ABMultiValueRef. I can get the types by doing: CFStringRef cfLabel = ABMultiValueCopyLabelAtIndex(multiValueRef,…
Peter Warbo
  • 11,136
  • 14
  • 98
  • 193