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

Getting user's own phone number information after granting address book request

Is there is a way—after an user has granted Address Book permission—to get the current user's address and phone number information? There are various questions on Stack Overflow that focus on this, but I noticed that most of them have been related…
daspianist
  • 5,336
  • 8
  • 50
  • 94
0
votes
1 answer

Best Practice with ABAddressBookRequestAccessWithCompletion

Is it acceptable to call the method ABAddressBookRequestAccessWithCompletioneven when the application may already have been grated access by the user?
Woodstock
  • 22,184
  • 15
  • 80
  • 118
0
votes
1 answer

Why does ABPeoplePickerView crash on double click?

Having set its nameDoubleAction and target, the ABPeoplePickerView behaves as expected when you double-click on a name. There is also a column for properties - you can add properties such as email and phone at design time in the attributes…
AlexT
  • 596
  • 7
  • 15
0
votes
1 answer

Contact importing in iPhone

Can anyone suggest me how to work with contact importing in iOS sdk? I mean to import the address book into my iOS application.
monish
  • 1,355
  • 5
  • 18
  • 32
0
votes
1 answer

My app doesn't show device's contacts right after the authorization check

In my app I have to access the address book, so in iOS>6.0 I have to ask permission to the user. I do this: ABAddressBookRef addressBook = ABAddressBookCreate(); if(floor(NSFoundationVersionNumber) >= NSFoundationVersionNumber_iOS_6_0) { //iOS…
Ales
  • 19
  • 8
0
votes
2 answers

Custom actions on ABPersonViewController

My app brings up a ABPersonViewController and gives the user the option to edit, or to select the contact. I can easily allow editing (pvc.allowsEditing = YES) but I can't figure out how to add the Select button. I would prefer to add it to the…
sehugg
  • 3,615
  • 5
  • 43
  • 60
0
votes
1 answer

How to give permission to access phone Addressbook in ios 7?

NSMutableArray *arrContacts=[[NSMutableArray alloc]init]; CFErrorRef *error = nil; ABAddressBookRef addressbook = ABAddressBookCreateWithOptions(NULL, error); __block BOOL accessGranted = NO; if…
0
votes
1 answer

Changing the name of a group (ABGroup) in iOS address book

I would like to add the ability to change the name of a group in the address book. However I can't seem to find an existing method to do this. Does anyone know if such a method exists? Or is my only option to copy the members of the group, add them…
Ian
  • 1,850
  • 6
  • 23
  • 38
0
votes
1 answer

How do I get Facebook and custom social addresses from iOS address book?

In my peoplePickerNavigationController:shouldContinueAfterSelectingPerson I'm able to read a bunch of the iOS Contacts info from the chosen contact into my app. The one item I can't figure out how to read is the Facebook (and other social) address…
Kent
  • 1,705
  • 3
  • 16
  • 26
0
votes
1 answer

IOS address book list, returning only one group, not all

I am writing code that attempts to parse all contacts from the IOS address book contact list. It seems pretty straightforward, and I've got the contacts and respective emails coming back as a list. One thing I noticed is that I have multiple Groups…
Miro
  • 5,307
  • 2
  • 39
  • 64
0
votes
1 answer

Monotoch GetPhones ABMultiValue Inconsistent

I am using the following code to get phones numbers from the address book. ABAddressBook mybook = new ABAddressBook(); ABPerson[] allPeople = mybook.GetPeople(); foreach(ABPerson thisPerson in allPeople){ if(thisPerson.GetPhones() != null) …
Bryan
  • 17,201
  • 24
  • 97
  • 123
0
votes
0 answers

Memory leak when working with ABAddressBook and ABRecordRef

I try to load some specific contacts from address book and store ABRecordRef into a mutable array of dictionaries. I'm using ARC and here is my method: - (ABRecordRef) findContactsMatchingFullName:(NSString *)contactFullName { ABAddressBookRef…
Hadi Sharghi
  • 903
  • 16
  • 33
0
votes
1 answer

CoreFoundation references and AddressBook programming

If want to check if a person record has email addresses. So: ABMultiValueRef emailMultiValue = ABRecordCopyValue(person, kABPersonEmailProperty); If the record has no email addresses, do I get a NULL value in emailMultiValue, or some other special…
QED
  • 9,803
  • 7
  • 50
  • 87
0
votes
2 answers

Add phone numbers to ABPerson

I try to put in a string for each of the values and I get errors, can someone demonstrate how to add numbers to an ABPerson here is my attempt: if (_cellNumber) { ABRecordSetValue(person, kABPersonPhoneMobileLabel, (__bridge…
user2780240
0
votes
1 answer

How do I write a custom Social Profile entry to the iOS addressbook?

I am doing the following to write Facebook and Twitter addresses to a new contact in the iOS addressbook: ABMultiValueRef multiSocial = ABMultiValueCreateMutable(kABMultiDictionaryPropertyType); ABMultiValueAddValueAndLabel(multiSocial, (__bridge…
Kent
  • 1,705
  • 3
  • 16
  • 26