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

Can't create group in addressbook programmatically on 64bit iPad

I am trying to create a group in my local address book. I have successfully implemented the code, and it does work well under iOS6 and iOS7 on 32 bit architecture. However the same code won't do anything on a 64 bit iPad 4. Has anybody experienced…
dirtydanee
  • 6,081
  • 2
  • 27
  • 43
1
vote
1 answer

How to get someone's home phone number in address book on iOS?

I'm trying to find the home phone number of a contact in the address book. To do this, I'm comparing the label of the phone number with all the possible labels: const ABPropertyID kABPersonPhoneProperty; const CFStringRef…
Pwner
  • 3,714
  • 6
  • 41
  • 67
1
vote
1 answer

ABAddressBook normalized phone number

I need to export contacts phone numbers from the user address book to a remote server. My server expecting a normalized phone number, for example if I get contact number: (541) 754-3010 the normalized number should be: 5417543010 my question is…
Eyal
  • 10,777
  • 18
  • 78
  • 130
1
vote
2 answers

App not asking for Contact access permission on iOS 6

I am using below Code, My application don't ask permission on iOS 6 while on iOS 7 and above version it ask for Contact permission access. On iOS 6 it doesn't show app in privacy setting as well. I have read some other thread but not found any…
Mangesh
  • 2,257
  • 4
  • 24
  • 51
1
vote
2 answers

Copy contacts phone numbers to array using ABAdressPhoneBookRef

I think I need to use ABMultiValueCopyArrayOfAllValues to grab all phone numbers from my ABAddressBookRef reference variable. (If this is not the correct way to do it, please give me a correct way; ANY way that gives me access to contact phone…
h4x0rjax
  • 359
  • 1
  • 6
  • 15
1
vote
1 answer

ABAddressBook/ABSource for OS X

I'm working on a custom "contacts" implementation for Mac and I'm finding that I can't get the equivalent behavior of ABSource from iOS. For example, in the Mac contacts app, I can see my iCloud source and it's groups underneath it. When I query…
cmilack
  • 11
  • 4
1
vote
1 answer

iOS: Creating an ABNewPersonViewController under ARC gives "Potential leak" warning

EDIT: Sorry for my question. It turned out that the error was in the line before the one that was flagged by the static analyzer. In this line, I called a Obj-C method that creates and returns an ABRecordRef, and although I balanced the creation of…
Reinhard Männer
  • 14,022
  • 5
  • 54
  • 116
1
vote
1 answer

ABAddressBookSave crashes when adding a kABPersonAddressProperty

I am making an app where I need to save a contact to the address book. Everything works fine except when I add the kABPersonAddressProperty, first I add them then i save the address and it crashes while saving. The error I am getting…
Alejandro
  • 23
  • 4
1
vote
1 answer

Allow App to use contacts pop up not appearing ios7

I am using an application where i want to fetch contacts.The problem is that the app only asks for the first time that app would like to use contacts.Even if i delete the application,clean it and run again,the application is not asking the pop up…
Suraj K Thomas
  • 5,773
  • 4
  • 52
  • 64
1
vote
1 answer

ABNewPersonViewController broken in iOS 7

My app allows the user to link other people within the app to entries in the contact book, and if one doesn't exist add a new one. I accomplish this by presenting an ABPeoplePickerNavigationController with an added button on the top for "Add…
Dan F
  • 17,654
  • 5
  • 72
  • 110
1
vote
1 answer

ABAddressBookSave causing a EXC_BAD_ACCESS ARC Enabled

The code I had been written was working until I tried to move the saving to a new thread. in ViewController.h I assigned an ABAddressBookRef: ViewController.h ABAddressBookRef addressBook; and in ViewController.m file created an addressbook object…
Hadi Sharghi
  • 903
  • 16
  • 33
1
vote
0 answers

Memory issue (I believe) with an ABRecordRef in Addressbook framework

I am currently creating some objects modeled that use data from ABRecordRefs — so I parse out strings to represent name, email. I do need a reference to the actual ABRecord because at some point I’ll pass it off to the ABPErsonViewController. So if…
Jason C. Howlin
  • 3,858
  • 3
  • 21
  • 29
1
vote
2 answers

ABPersonViewController - callback from "Edit" button - objective C

I am using ABPersonViewController and adding a label on the "Info" view. The thing is: when I click the "Edit" button, since the : personController.allowsEditing = YES; my view goes to the "edit view" and my Label is still there (not as I planed ) I…
Itay
  • 11
  • 2
  • 4
1
vote
1 answer

Code Execution Delay After Addressbook Permit

Whenever the user presses OK on the AddressBook permission UIAlertView everything goes fine except for a delay in executing these commands, weirdly it takes about 5 seconds for these commands to be executed, even though the NSLog is printed…
1
vote
1 answer

Monotouch ABAdressBook GetPhones Check For Null

ABAddressBook mybook = new ABAddressBook(); ABPerson[] allPeople = mybook.GetPeople(); foreach(ABPerson thisPerson in allPeople){ if(thisPerson.GetPhones() != null) ABMultiValue myMultiPhone = thisPerson.GetPhones(); …
Bryan
  • 17,201
  • 24
  • 97
  • 123