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

ABPersonCopyImageDataWithFormat deletes contacts image

I have this code to store all contacts image in dictionary. But, in some cases when it is interrupted, the image for contacts just disappear. dispatch_async(dispatch_get_main_queue(), ^{ if (ABPersonHasImageData(_personObj)) { …
Omarj
  • 1,151
  • 2
  • 16
  • 43
2
votes
1 answer

Fetch only facebook contacts from address book

I need to fetch only facebook contacts from address book. I have gone through many threads and have come up with following code. - (IBAction)buttonPressed:(id)sender { if (ABAddressBookRequestAccessWithCompletion) { // if in iOS 6 // Request…
Sagrian
  • 1,048
  • 2
  • 11
  • 29
2
votes
1 answer

Source of ABRecordRef (phonebook or icloud)

Me need to find out source of ABRecordRef, because the method bellow returns array of contacts from phone book and icloud and as result there are double contacts with the same person (fierst, last name), but with the different ABRecordID…
2
votes
1 answer

ABAddressBook is deprecated, how to use ABAddressBook.Create method?

I'm getting the below warning on iOS6, when creating an ABAddressBook object. I'm using it like this: ABAddressBook ab = new ABAddressBook (); result: Warning CS0618: `MonoTouch.AddressBook.ABAddressBook.ABAddressBook()' is obsolete: `Use static…
Pirate
  • 71
  • 1
  • 10
2
votes
1 answer

Adding address book in contact page

I want to add an address book in my contact page and I want to do that programmatically i.e without using nib files. Can anyone suggest me a nice tutorial or sample code for that. i have used the codes of the answer given by iPatel and when i am…
Newbee
  • 265
  • 3
  • 9
  • 22
2
votes
1 answer

AddressBook - Crash in iOS app, ARC enabled, near CF objects manipulation

I have a crash, very likely related to memory management that I can not spot. Crash never happened on me, I only know it's occurring because of crash reports I have received. This also means the only current way I have to confirm crash is fixed is…
Guillaume
  • 21,685
  • 6
  • 63
  • 95
2
votes
0 answers

Trigger Auto-Linking of Contacts in iOS

I am making an applications that creates contacts in the iPhones address book. This sometimes leads to duplicate entries when adding contacts to many sources (i.e. exchange, CardDAV, Local, etc.) I need to be able to link these duplicate contacts in…
PKeno
  • 2,694
  • 7
  • 20
  • 37
2
votes
1 answer

How to retrieve 'self' from Address Book

I have noticed that in iOS 6 I have my own name with my number, email and etc on my address book. I dont know if this is new or for some reason some app added myself there... Anyway is there a way to retrieve 'self' from the Address Book? I have…
Andre Cytryn
  • 2,506
  • 4
  • 28
  • 43
2
votes
2 answers

ABAddresBook Permission in iOS 6 Simulator

Do you know if permissions are working on the simulator? I request access, but can't see my application in Pricacy settings, also I do get back an array of all the contacts, etc. And according to my code access has been already granted. Is this a…
John Lane
  • 1,112
  • 1
  • 14
  • 32
2
votes
1 answer

objective c find contact in addressbook by phone number

like title what is the best and efficient way to find a contact in device addressbook by phone number? Actually i use a method like this: Note that: [rm getElencoContatti] returns all contacts in addressbook [contatto getID] returns contacts id from…
pasqui86
  • 529
  • 1
  • 7
  • 22
2
votes
0 answers

ABAddressBookCopyArrayOfAllPeopleInSource return "0" object?

I'm trying to get contacts for specific Source but it is return to me 0 object. Like u see if the source have Groups it will be add to array , but if there is no groups i just need to know number of contact in this source "for Example Google…
Omarj
  • 1,151
  • 2
  • 16
  • 43
2
votes
1 answer

Is it possible to update linked contacts from my iOS app using ABPersonViewController?

My app allows the users to import contacts from their address book and store them in our CardDAV server. I'd like keep the contacts on our CardDAV server with all other linked contacts in the address book (iCloud for example) in sync. When a…
2
votes
1 answer

Missing contacts in ABAddressBookCopyArrayOfAllPeople

Im trying to find a phone number in the address book from my app and I was surprised not to find it. The thing is that I've printed all the numbers of my address book in the console accessed by my app and strangely some of the contacts are missing,…
subharb
  • 3,374
  • 8
  • 41
  • 72
2
votes
2 answers

Why does ABGroupAddMember fail? It returns NO and does not set the CFErrorRef value

I need to prevent display of contact groups within our app however it is intrusive to the user to simply remove Groups from the AddressBook. So I'm attempting to remove them before display contacts, and then add them back when finished so that the…
imobilizer
  • 161
  • 1
  • 13
2
votes
1 answer

Getting addressbook ios 5,ios 4.3 errors

I get some problems with get address book in iPhone 5.1 simulator or lower, this code works well in iPhone 6 simulator. I found in some references that only ios 6 need permission, but my case is different. Address book always returns no contact and.…
Linh Nguyen
  • 925
  • 1
  • 10
  • 23