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

ABAddressBook - multiple address books?

I am building an app which syncs contacts from an online source. Everything works fine so far...when the phone has one address book: ABAddressBookRef addressBook = ABAddressBookCreate(); ABRecordRef group1 =…
Mike
  • 73
  • 5
2
votes
2 answers

How can I create multiple contacts in LDAP with the same email address?

I installed LDAP and phpLDAPadmin following this tutorial, and so far it is working. Now I am trying to create an entry in the address book with a duplicate email address. I'm trying to set up contact sharing in outlook, but we have groups of…
jjsteing
  • 67
  • 7
2
votes
2 answers

How to obtain Home City from Contacts Framework in iOS +9?

I am replacing my obsolete ABAdressBook code with the current CNContact framework in Objective C. I could sort out most of it, except for the Home City part, so lets focus on that. Currently I have this code: -(NSArray…
Josh
  • 6,251
  • 2
  • 46
  • 73
2
votes
1 answer

How do I determine the last modification date of an ABPerson in iOS address book?

Can i get last modify date of ABPerson in iOS's Address book?
asedra_le
  • 3,079
  • 8
  • 38
  • 56
2
votes
1 answer

iOS: Error deleting contacts from Address book: [CNDataMapperContactStore executeSaveRequest:error:]

I'm trying to implement a deletion of contacts in the address book but I'm getting the following errors. Here is my implementation: CNMutableContact *contact = [[cnContacts objectAtIndex:i] copy]; [cnContacts removeObjectAtIndex:i]; …
user2924482
  • 8,380
  • 23
  • 89
  • 173
2
votes
3 answers

Issue while pushing ABNewPersonViewController

I am using AddressBookUI Framework for Adding contact, when I tried to pushing this view controller then cancel and done button not working properly, I don't want to present it Here is my code ABNewPersonViewController *abnpvc =…
CASMK
  • 55
  • 8
2
votes
1 answer

How can i add contact on existing Group in iOS sdk

I am working on contact app in which i want to add the contact with 3 different groups (i.e. A, B, C). And for adding (creating) new contact using native contact create. ABRecordRef person = ABPersonCreate(); ABUnknownPersonViewController…
sohil
  • 818
  • 2
  • 15
  • 38
2
votes
1 answer

Contact without name causes app to crash on iPhone

I am trying to retrieve contact names, here's how: func getContactNames() { let adbk : ABAddressBook? = ABAddressBookCreateWithOptions(nil, nil).takeRetainedValue() let people = ABAddressBookCopyArrayOfAllPeople(adbk).takeRetainedValue() as…
Xernox
  • 1,706
  • 1
  • 23
  • 37
2
votes
0 answers

How did Swarm app get my phone number?

I gave Swarm access to my contacts to know who else were on Swarm. To match me with the people in my address book, I was expecting Swarm to ask me for my phone number and start and SMS validation process. It didn't. And it could match me with my…
Cherif
  • 5,223
  • 8
  • 33
  • 54
2
votes
0 answers

Unique reference to a Record in ABAddressBook

I was working with AddressBook Framework. The requirement is to save some contacts selected from AddressBook and the saved contacts will be edited some later times. So I used ABRecordGetRecordID(ABRecordRef record) method to get the unique…
Alex Andrews
  • 1,498
  • 2
  • 19
  • 33
2
votes
3 answers

Get iOS contact image with ABPersonCopyImageData

I'm trying to read the contact image of my iOS addressbook but I'm having some troubles with it. I have a method that read the information of contacts of ABAddressBookRef and put it on a struct. func readContacts(addressBook: ABAddressBookRef){ …
marchiore
  • 582
  • 2
  • 6
  • 21
2
votes
1 answer

How to change the format of phone number in ABAddressBook?

I'm making a social App, and I have to implement ABAddressBook with name, and phone number. I would like to format phone number for example : +33 6 01 23 45 67 becomes 0601234567 (French phone number). So, I want to delete spaces, and transform +33…
Vjardel
  • 1,065
  • 1
  • 13
  • 28
2
votes
1 answer

iOS How to check ABRecordRef ABAddressBook, ABPerson has WhatsApp enabled?

Hi I use the following code and pass the abid and I am able to send a message to users who have WhatsApp installed but how do I know before I send a message that the user has WhatsApp setup? I don't want to enable the option if it will not work for…
Wael
  • 489
  • 6
  • 19
2
votes
2 answers

Swift: Copy Information Selected by User in ABPersonViewController to Dictionary

I'm trying to implement the func personViewController(personViewController: ABPersonViewController!, shouldPerformDefaultActionForPerson person: ABRecord!, property property: ABPropertyID, identifier valueIdentifier:…
5813
  • 1,073
  • 3
  • 14
  • 28
2
votes
2 answers

Fetch Name AND Number contact list Address Book

I'm trying to NSLog name and number from my contact in Address Book. I succeed to log the name, but I don't succeed to solve the problem with number. Here is my code : ABAddressBookRef addressBook = ABAddressBookCreateWithOptions(NULL, NULL); if…
Vjardel
  • 1,065
  • 1
  • 13
  • 28