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

iOS Addressbook: Cannot setup an ABNewPersonViewController in storyboard

I have a subclass of ABNewPersonViewController defined in storyboard, and embedded there in a navigation controller, as required by the docs. The navigation controller is itself controlled by a tab bar controller. In the identity inspector, the…
Reinhard Männer
  • 14,022
  • 5
  • 54
  • 116
1
vote
2 answers

Optimizing contacts deletion

I have copied all the local contacts and stored them in core data,now when i use time profiler instrument,it shows me a large amount of time is being spent on deleting local contacts from my app.Can anyone suggest me any optimization techniques to…
vin
  • 1,258
  • 5
  • 20
  • 33
1
vote
2 answers

I am retrieving contact's multiple addresses but only want Home address

Does anyone know how to retrieve the Home address from multiaddress in iOS? I have got permission from user and everything else but the problem is, I only want the Home address. ABAddressBookRef addressBook = ABAddressBookCreate(); __block BOOL…
Ramiz Girach
  • 169
  • 2
  • 10
1
vote
1 answer

Can't back out of ABUnknownPersonViewController when adding person

I'm having an issue. ABUnknownPersonViewController is embedded in a navigation controller at the top view, however, I'm not using the navigation bar in my app. When pushing to the ABUnknownPersonView, I don't get the navigation bar or the back…
1
vote
1 answer

Recreating "ABPeoplePicker" functionality on Mac

I'm trying to create a Mac version of an iPhone app, and specifically I need to be able to pick a person from the user's Address Book, akin to the ABPeoplePicker on iOS. The look of the interface isn't particularly important (be it a separate popup…
Nerrolken
  • 1,975
  • 3
  • 24
  • 53
1
vote
1 answer

How can I ensure that NSOperationQueue uses only one thread?

ABAddressBookRef can only be accessed by one thread. I think a good model would be having a thread for ABAddressBookRef in the background, besides the main thread. How can I ensure that there's only one thread while using NSOperationQueue? Simply…
Septiadi Agus
  • 1,775
  • 3
  • 17
  • 26
1
vote
1 answer

iOS open specific contact info

i know how to call the contact view but if someone could tell me how to call a specific contact . To call the view i am calling this method ABPeoplePickerNavigationController *picker = [[ABPeoplePickerNavigationController alloc]…
Ramiz Girach
  • 169
  • 2
  • 10
1
vote
1 answer

iPhone: "error: ABPerson.h: No such file or directory"... How to use the ABPerson class?

I'm trying to use the ABPerson object. The documentation tells me to include ABPerson.h. Here is basically my code: #import "ABPerson.h" [...] -(void) updateImageWithContact:(ABPerson)contact; The problem is that I get an error: error: ABPerson.h:…
marcgg
  • 65,020
  • 52
  • 178
  • 231
1
vote
1 answer

App Crashes inside dispatch_queue in iPhone

In one of my apps I am using dispatch_queue and inside this I declared a dispatch_asyc queue for checking the address book. Now when compiler comes to the return statement, it causes app to crash. Below is my source code. dispatch_queue_t queue =…
user741076
  • 63
  • 1
  • 3
  • 9
1
vote
1 answer

How i do update an existing contact phone number?

Hello everyone I am trying to update a contact's phone using the following code ABAddressBookRef addressBook = ABAddressBookCreate(); CFErrorRef error = nil; ABMutableMultiValueRef phoneMultiValue =…
veereev
  • 2,650
  • 4
  • 27
  • 40
1
vote
1 answer

Using ABCalendarPicker

I am having trouble with ABCalendarPicker. Can someone please explain why the below screenshot is coming out this way? I have added the bundle and the .a library as build resources. I have also built the ABCalendarPicker project prior to…
bdparrish
  • 3,216
  • 3
  • 37
  • 58
1
vote
1 answer

How to search a contact's phone number? (Abaddressbook)

In my iOS app, I want to find the phone number of the contact that matches the name. CFErrorRef *error = NULL; // Create a address book instance. ABAddressBookRef addressbook = ABAddressBookCreateWithOptions(NULL, error); // Get all people's info…
mopodafordeya
  • 635
  • 1
  • 9
  • 26
1
vote
0 answers

ABAddressBookRegisterExternalChangeCallback causing EXC_BAD_ACCESS

I have this code: void MyAddressBookExternalChangeCallback(ABAddressBookRef addressBook, CFDictionaryRef info, void *context) { [(id)context reloadSpecifiers]; } @interface JBPPreferencesListController : PSListController { ABAddressBookRef…
Jonathan.
  • 53,997
  • 54
  • 186
  • 290
1
vote
1 answer

How can I determine in which region a New Zealand city/town/postalcode is located?

I have an app which lists a lot of postal addresses from user-generated data. Where applicable, addresses will be grouped by state, province, or region. New Zealand postal addresses contain a city and postal code, but no region. Is there any region…
bneely
  • 9,083
  • 4
  • 38
  • 46
1
vote
1 answer

How can I get the address book permission popup to display on top?

I am coaching a team of 7th and 8th graders working on developing a small app that displays selections from the address book in a large format. You can check out their general project at callmeapp.org. We are stuck on how to prompt the user for…
EricPerson
  • 11
  • 1
  • 3