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

Open own app from address book

The Address book in iOS has IM and Social integrations for redirecting users to the relevant apps, by using kABPerson... keys. For example the following are used to redirect to a certain contact's profile in relevant app with their respective…
n00bProgrammer
  • 4,261
  • 3
  • 32
  • 60
2
votes
2 answers

Getting contacts who own an iDevice

Is there a way through addressbookUi framework to get only the contacts who own an iDevice? The check for example is done in the messages app for iMessage. But is this available for developers? Or is there another way to check for this? Thank you in…
snksnk
  • 1,566
  • 4
  • 21
  • 46
2
votes
0 answers

ABAddressBookRequestAccessWithCompletion completion block never called on the main queue by default?

On a Stackoverflow question (see "Source 1" at the bottom), I see the following pattern when working with AddressBook in which the programmer wants to block the main thread until the user has granted (or denied) access to his/her…
platypus
  • 1,165
  • 5
  • 27
  • 47
2
votes
1 answer

ABPeoplePickerNavigationController custom instant messenger field not showing

There is an "add instant message" button in the Contacts application. There are some predefined ones like Skype, MSN, Facebook, etc but you can add a custom one. However, if you add a custom instant message address, and use the…
evalsyrelec
  • 1,553
  • 1
  • 12
  • 15
2
votes
1 answer

When using ABMultiValueCopyValueAtIndex, how to get NSString with all the special charecters removed?

When i am using ABpeoplePickerNavigationController, when the below delegate gets called, I am trying to do the following: - (BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker…
2
votes
2 answers

Does ABAddressBookRegisterExternalChangeCallback work even when app is termintated

I am using ABAddressBookRegisterExternalChangeCallback to register if there are any changes being made to the AddressBook database. I have it working fine for me and am able to receive the notifications, but they work only when the app is running.…
2
votes
1 answer

App crash then startup for apple

I'm new of stack overflow. I have a big problem to send an app to apple. when i test my app to my iPhone 5 or simulator everything is ok but apple reject for 2 times my app, they told me that my app crash then the splash screen and give me the crash…
Mirko Catalano
  • 3,850
  • 2
  • 26
  • 39
2
votes
1 answer

ABPersonSocialProfile crash app

I have problem with adding new social profiles to ABRecordRef. It always return crash on ABAdressBookSave "[__NSCFString count]: unrecognized selector sent to instance" ABMultiValueRef social =…
2
votes
1 answer

Determine iOS sort order for ABContactsHelper

for an iPhone project I'm using the ABContactsHelper by Erica Sadun. To show the contacts I wan't to use the same sort order as iOS uses in e.g. AdressBook.app. Is there a possibility to get this information? I tried: + (BOOL) firstNameSorting; +…
crizztus
  • 307
  • 3
  • 10
2
votes
0 answers

Handle addressbook permission from settings-> priacy crashes

I am using the following code to ask the permission from addressbook and save it to app's UserDefaults. if (ABAddressBookRequestAccessWithCompletion != NULL) { // we're on iOS 6 ABAddressBookRef addressBookRef = ABAddressBookCreate(); …
user2435304
2
votes
1 answer

iPhone: Adding contact to a group not working on device but working on simulator in ABAddressbook

Adding contact to a group not working on device but working on simulator in ABAddressbook Gives no error but contact is not reflected in particular group in contacts but works fine on Simulator I am Using this code if (person) { …
Dinesh Kaushik
  • 2,917
  • 2
  • 23
  • 36
2
votes
1 answer

Crash when CFRelease(CFArrayRef)

I have method which is clear the adress book in the device. the method is below. -(void) clearAdressBook { ABAddressBookRef addrBook=ABAddressBookCreate(); CFArrayRef groups = ABAddressBookCopyArrayOfAllGroups(addrBook); if(groups) …
taffarel
  • 4,015
  • 4
  • 33
  • 61
2
votes
1 answer

Crash while fetching the contacts from the address book database for the iOS version 6.1.3?

I have developed the application to fetch the contacts from the address book database. For this the implemented code is code fine for the iOS version 6.0, but it crashes on iOS 6.1.3. The code which I have implemented to fetch the contacts from the…
M Vignesh
  • 1,586
  • 2
  • 18
  • 55
2
votes
1 answer

How to get list of updated contacts from ABAddressBookRegisterExternalChangeCallback?

I am using ABAddressBookRegisterExternalChangeCallback to get notifications when the ios address book contacts changes. How do I get list of updated (added/removed/modified) contacts from the callback? I do not wish to reload my entire list of…
wjh
  • 597
  • 2
  • 6
  • 18
2
votes
2 answers

Random crash on ABAddressBookSave

I am having a problem solving a random crash: It some times crashes/ sometimes not. According to EXC_BAD_ACCESS when executing ABAddressBookSave !, I should take multivalueref for proper values, date, address, email, phone: all have been taken as…
Nikita P
  • 4,226
  • 5
  • 31
  • 55