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

Default addressbook before iOS4?

A couple of questions I really hope someone may have the answer to, as I have been pulling my hair out with a related problem and I am REALLY hoping the current solution I have in mind will nail it... 1) Which addressBook would have been used when…
Peter Johnson
  • 3,764
  • 1
  • 23
  • 27
1
vote
1 answer

How to update: (COCOA/OSX) ABPerson / ABMultiValue (phonenumbers)?

II trying to change the value of ABPerson / ABMultiValue (the phone numbers). Anyway to update these? ABAddressBook *ab = [ABAddressBook sharedAddressBook]; NSArray *persons = [ab people]; int j=[persons count]; for (int i=0; i
Roger
  • 7,535
  • 5
  • 41
  • 63
1
vote
1 answer

SQLite error on updating address book

I am trying to find a way to amend an Address Book record which will work the same on all OSs (post 3.0, anyway) and correctly sync with Google Contacts/Outlook. I tried writing the new email data to the existing record and writing it back out. This…
Peter Johnson
  • 3,764
  • 1
  • 23
  • 27
1
vote
2 answers

iPhone AddressBook - how to create a new record with app from my App

I'm trying to create a new record of Person thru my App. I have the name, email and phone nr. How can i pass them to the modal view of newPerson? I'm following Apple's docs, but i'm stuck. I'm using a ABNewPersonViewController. Is that correct? How…
Rui Lopes
  • 2,562
  • 6
  • 34
  • 49
1
vote
1 answer

Memoryleak when using CFRelease

I have the method which causes a memory leak as shown by the instrument: -(BOOL)checkIfGroupExistWithName:(NSString*)groupName { BOOL hasGroup = NO; //checks to see if the group is created ad creats group for Handheld contacts …
Teja Nandamuri
  • 11,045
  • 6
  • 57
  • 109
1
vote
2 answers

Can't add ABPerson to ABGroup. No errors, just will not actually add

Hey I'm trying to add an ABPerson to an ABGroup. I get no errors or anything. My output tells me the person has been added successfully. if(ABGroupAddMember(self.group, [allContacts objectAtIndex:indexPath.row], &error)) NSLog(@"Added…
Ben Harris
  • 5,664
  • 3
  • 30
  • 27
1
vote
0 answers

iOS: equivalence for migration AddressBook to Contact framework

I'm migrating from AddressBook to Contact Framework in iOS 9, and encountered a few issues, could someone with similar experience share some opinions? ABAddressBookCreateWithOptions Is it the same as creating a new CNContactStore…
Heuristic
  • 5,087
  • 9
  • 54
  • 94
1
vote
1 answer

Why is Sierra asking for Contacts (AddressBook) permission?

As folks using my app transition to Sierra (MacOS 10.12), the OS is suddenly asking them for permission to access their Contacts. I have no idea why it's doing this; it doesn't do it on any previous OS. More importantly, there's nowhere the app is…
mackworth
  • 5,873
  • 2
  • 29
  • 49
1
vote
1 answer

Why do the deprecated ABAddressBook APIs crash iOS 10?

I suppose this is largely a question about how iOS handles deprecating APIs. I have an app that supports iOS 8.3+, and it worked fine through 9.3.x, but it breaks on iOS 10. When my app lets the user pick a contact, the error that I get…
Kenster999
  • 466
  • 2
  • 13
1
vote
2 answers

APAddressBook with Swift 3 - EXC_ARM_BREAKPOINT

I am updating one of my apps to Swift 3 and i am using the APAddressBook Library (https://github.com/Alterplay/APAddressBook) as always. Here is a Swift example from APAddressBook but this fails, too self.addressBook.loadContacts({ (contacts:…
Kevin Lieser
  • 951
  • 1
  • 9
  • 25
1
vote
1 answer

ABAddressBookCopyArrayOfAllPeople Not returning any People

I am starting to work with the ABAddress Book and using a very simple starting point... I want to get all the entries in my address book and put it into an array. It keeps showing 0 elements. ABAddressBookRef addressBook =…
logixologist
  • 3,694
  • 4
  • 28
  • 46
1
vote
0 answers

How to access information about a contact in a Mac OS X address book?

When attempting to find a contact in an address book on a Mac, the following compiler error is displayed "Use of unresolved identifier 'kABPersonFirstNameProperty'." I've found an example here for iOS but can't find a OS X equivalent. According to…
Epsilon
  • 1,016
  • 1
  • 6
  • 15
1
vote
3 answers

App is Not asking contact permission to access contact in iOS 9

I am using The Following code for getting iPhone Contacts but my App is not getting Permission For Allow Contacts in iOS 9 . I have found this code from stack and the other references are also same . - (void)getPersonOutOfAddressBook { //1 …
guru
  • 2,727
  • 3
  • 27
  • 39
1
vote
1 answer

How to I can edit first name and last on my contact from ABAddressBook

How to I can edit first name and last on my contact from ABAddressBook. I used this code to find some contacts with name. +(CFArrayRef)searchContactOnDevice_fromFullName:(NSString *)FullName{ NSString *searchName = [NSString…
1
vote
1 answer

how to search in address book using phone number ios

I am new in IOS Programming. In my simple app I am storing first name,last name and phone number in NSMutableArray.I have a UITextfield where I get the phone number.I wanna search first name and last name according to mobile number.I am storing…
viratpuar
  • 524
  • 1
  • 5
  • 22