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

How to sync contact between Contact App and my app in CNContact framework?

I synced contacts between Contact app and my app in ABAddressBook framework compared with kABPersonModificationDateProperty. But I can't find Contact's modification property API in CNContact Framework. I have waited for iOS 12, some report it to…
dobiho
  • 1,025
  • 1
  • 11
  • 22
0
votes
1 answer

app crashes when using kABPersinPhoneProperty

I am trying to get all the phone number from the Phone Book of iPhone. But my app crashes as soon as I try to fetch the number using kABPersonPhoneProperty. The code snippet is here ABAddressBookRef addressBook = ABAddressBookCreate();…
devsri
  • 6,173
  • 5
  • 32
  • 40
0
votes
1 answer

Is it possible to corrupt somehow data in iOS AddressBook via AB API?

To write some fields with strange symbols, for instance. Did anyone come across such issues? I'm evaluating an opportunity of storing my custom string field in iPhone AB and I want to know, if there is any risk to corrupt AB. UPD: I mean, can I do…
fspirit
  • 2,537
  • 2
  • 19
  • 27
0
votes
1 answer

deleting a contact from address book using personViewController

I am getting hand over the address book and created it successfully without any option of 'deleting a contact' from address book. Is there any method to delete contact from address book. I got help from iOS reference library. I am using…
Ketan Shinde
  • 1,847
  • 4
  • 18
  • 38
0
votes
0 answers

Creating/Deleting an addressbook group fails in iPad device

I'm trying to manage the contacts of my app by creating a group. Creating/Deleting a group works fine on simulator (with iOS 11.3 and with iOS 9.3). In both cases, the default contact settings are set to iCloud in the iOS settings. I have checked…
Teja Nandamuri
  • 11,045
  • 6
  • 57
  • 109
0
votes
0 answers

ABAddressBookSave is failing without error

I am trying to create a contact group in native by using following code, The Scenario i am trying is : Add any outlook account in native mail then enable contact sync, this will create a contact group. After this if i am trying to create a group…
Shaik Riyaz
  • 11,204
  • 7
  • 53
  • 70
0
votes
1 answer

Is there any faster way to find a single number using ABAdressBook?

How to find a single number from ABAdressBook which contains 10 000 contacts? Currently I am using ABAddressBookRef. Is there an alternative method to reduce iterating? My code snippet: if([numberType intValue] == NUMBER_TYPE_EXTERNAL &&…
Kapil_A
  • 125
  • 2
  • 15
0
votes
1 answer

Not working add number to existing contacts in ios 11

I want to add a phone number into existing contact. This code working perfectly in iOS8 but not into iOS11. Not getting any errors but while ABNewPersonViewController opens I cannot see new Phone Number. -(void)addToExstingContact{ …
Pramod Tapaniya
  • 1,228
  • 11
  • 30
0
votes
1 answer

Load all the Contacts from iphone PhoneBook in a variable

I am naive to the xcode programming. I need to load all the contacts from the iPhone PhoneBook on a variable. Could you please suggest me some library or something like that. Any sample code would be highly appreciable. Looking forward to a…
devsri
  • 6,173
  • 5
  • 32
  • 40
0
votes
0 answers

ABNewPersonViewController didCompleteWithNewPerson record id changed

I'm facing issue while adding new contact and getting record id in didCompleteWithNewPerson. The record id gets automatically changed and i'm not able to get contact detail from that record id. Here is the code i'm using to get contact detail from…
Shah Paneri
  • 729
  • 7
  • 28
0
votes
1 answer

setting ABUnknownPersonViewController's person's image leaks, how do i fix this?

ABRecordRef thecomicstrip = NULL; person = ABPersonCreate(); //LEAKS UIImage *iconImage = [UIImage imageNamed:@"my_icon.png"]; NSData * data = UIImagePNGRepresentation(iconImage); ABPersonSetImageData(thecomicstrip, (CFDataRef)data,…
Mausimo
  • 8,018
  • 12
  • 52
  • 70
0
votes
1 answer

iPhone ABAddressBook -> NSDictionary causing app to crash for some users

I have an app on the app store that has been fairly successful. However around 10 reviews have been posted stating that the app crashes as soon as the addressbook is accessed via ABAddressBook. This is driving me crazy as I've received no crash…
Dave
  • 23
  • 1
  • 3
0
votes
1 answer

Is it possible to use a ABPersonViewController or ABUknownPersonViewController for displaying contact info?

Is it possible to use ABPersonViewController or ABUknownPersonViewController to display contact information within my app. ie.) you click a button that says "contact info" -> which then loads a ABPersonViewController with static information such as…
Mausimo
  • 8,018
  • 12
  • 52
  • 70
0
votes
1 answer

Mimic ABNewPersonViewController UI

I'd like to replicate the iOS 4.x ABNewPersonViewController UI layout (see link text) in a custom view but I'm unsure about the best way to achieve this. I was thinking of a single grouped UITableView, but what about the first section? How do I…
Tomas Camin
  • 9,996
  • 2
  • 43
  • 62
0
votes
0 answers

ABAddressBookCopyPeopleWithName does not work on iOS 11

Below code does not work on iOS 11 , ABAddressBookCopyPeopleWithName works on iOS 9 but does not work on iOS 11. (void)showPersonViewController { NSString *cf = [self.data.displayName copy]; NSArray *people = (NSArray…