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

ABNewPersonViewController parentGroup issue

I'm trying to add a contact to custom created Group but contact every time is being added to the default contact list. this is how I'm showing the controller -(void) showNewPersonContact { ABRecordRef groupId= …
taffarel
  • 4,015
  • 4
  • 33
  • 61
0
votes
1 answer

NSContactsUsageDescription not working

I am setting a string on my Info.plist file for NSContactsUsageDescription; but it is not showing up in the alert dialog that asks for permissions to access Contacts. Is there anything I am missing? I have tried NSLocationUsageDescription and that…
Jan S.
  • 10,328
  • 3
  • 31
  • 36
0
votes
1 answer

How to insert Multiple contacts into ABAddressbook?

I need to insert 25000 contacts to iPhone contacts as far as I coded it works fine on simulator and this can be achieved in few minutes. But when I import this on a iPhone 4s it takes more than 3 hours and also only partial contacts gets saved and…
Arvind
  • 493
  • 1
  • 8
  • 23
0
votes
2 answers

XCode: Apple Mach-O Linker Error with New iOS 6 ABAddressBook Functions

I am running Xcode 4.2 with an imported IOS 6 SDK (older Mac incapable of running XCode 4.5). My app is configured with an iOS Deployment Target of 4.3, a Base SDK of 6.0, and Architectures of armv7 only. I am trying to update my previously…
JRoss
  • 177
  • 10
  • 23
0
votes
1 answer

Weirdness with ABAddressBook and CFRelease

I have a strange thing happening with ABAddressBook. Here is some code: - (NSArray*)addressBookArray { ABAddressBookRef addressBook = NULL; NSArray *temp = nil; if(&ABAddressBookCreateWithOptions != NULL) { CFErrorRef error =…
Ty Kroll
  • 1,385
  • 12
  • 27
0
votes
1 answer

Accessing all addresses of a certain group

I know how to get all people from the address book with ABAddressBookCopyArrayOfAllPeople() but how do I get a list of the different groups and more specifically how to I get contacts from a certain group. I tried my luck with kABGroupNameProperty…
Joseph
  • 9,171
  • 8
  • 41
  • 67
0
votes
1 answer

ABRecordCopyValue different values?

Im trying to search within my contact list, but this codes crashes if it's executed freshly from the app store, or, as Im testing now, from TestFlight. If I uninstall the app and hit Run it goes perfectly. But executed right from TestFlight it…
subharb
  • 3,374
  • 8
  • 41
  • 72
0
votes
1 answer

How to take permission of contact access in iOS5?

I am making an application which is compatible with iOS5 and it I want to take permission before to access the user contact list. In iOS6 I am able to do this but in iOS5 I have not found any code for to this. I am using it to access the contact…
saurabh jain
  • 19
  • 2
  • 8
0
votes
2 answers

ABAddressBookGetPersonWithRecordID crash the app when recordId not available

In my app I've stored ABPropertyID in database and based on that I've displayed number of ABRecordRef with ABAddressBookGetPersonWithRecordID(addressBook, recordID). But when contact deleted in contacts and I try to get ABRecordRef, App crashes is…
iBhavik
  • 663
  • 11
  • 28
0
votes
2 answers

Custom addressbook ABPeoplePickerViewController help please?

I need help with a custom AddressBook (ABPeoplePickerViewController) for iPhone? I want to have an array with all my contacts, pulling just their name and numbers into the cells of the tableview to display.. Select a few contacts, open Messages and…
emotality
  • 12,795
  • 4
  • 39
  • 60
0
votes
1 answer

Want to have same ordering as native contact phone book

I am working on contact manipulation for one app. My requirement is to maintain same ordering as native phoneBook. If there is some change in native, with one fetch by some field with some order specification I should directly get to know the…
0
votes
2 answers

Error in accessing address book in iOS<6

I have implemented method to get contacts. For iOS 6, I used below code to get permission from the user: CFErrorRef myError = NULL; ABAddressBookRef myAddressBook = ABAddressBookCreateWithOptions(NULL,…
swati sharma
  • 367
  • 4
  • 15
0
votes
1 answer

Use of undeclared identifier 'kABNicknameProperty' in iOS AddressBook - why?

I'm trying to fetch the name and birth date of an address book entry on iOS (5.0+) and I found a way of doing so with the documentation and this post. But I always get the error mentioned in the title for all the 'kAB...' constants although I'm sure…
CGee
  • 1,650
  • 5
  • 20
  • 31
0
votes
1 answer

looking for pointer and clarification on ABAdressbook

I am trying to add ABAdressbook support to my IOS5 app. Been looking the documentation. I get this code where we create a ABAdressbook instance using: ABAddressBook *addressBook; ABPerson *newPerson; addressBook = [ABAddressBook…
Pascale Beaulac
  • 889
  • 10
  • 28
0
votes
1 answer

Unable to obtain ABAddressBook on iOS 6 (no privacy prompt returns empty database)

I'm having trouble accessing users address books on iOS 6 on certain devices. Oddly it works when I test on my own device. The app never prompts the user to access the address book and my app is not listed in Settings -> Privacy -> Contacts on their…
runmad
  • 14,846
  • 9
  • 99
  • 140