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

kABAuthorizationStatusDenied when i try to access contacts from the iphone for my app?

I have an app which is invisible and runs in the background on iPhone. App wants to access contacts from the iPhone but not getting that due to kABAuthorizationStatusDenied. Here is the code for accessing the contacts. ABAddressBookRef…
0
votes
0 answers

iOS - filtered view of address book

In my app I want to open the address book view controller to add contacts. Now I get a view that shows all the contacts in the iPhone. But I want to get only some of the contacts (based on whether they are registered to the app). My code that is…
bobsacameno
  • 765
  • 3
  • 10
  • 25
0
votes
0 answers

App freezes for 6-10 seconds after getting contacts permission

I ask the user for contacts permission before going into a "import contacts" view controller. When I tap yes for the permission request, the app halts for about 5-10 seconds and then proceeds with the segue. During that frozen time, it does not…
Adama
  • 1,101
  • 8
  • 26
0
votes
2 answers

iOS Address Book: Can a person record have a nil first name?

If a contact's first name or last name is blank, will the value be nil or ""?
ma11hew28
  • 121,420
  • 116
  • 450
  • 651
0
votes
2 answers

custom kABPersonInstantMessageProperty

I am working on an app that requires me to set kABPersonInstantMessageProperty or kABPersonSocialProfileProperty to my app.This properties when set are displayed in the contacts of the user.But the problem is that they have predefined keys like…
novice
  • 7
  • 4
0
votes
1 answer

Some Warnings printed when I use ABNewPersonViewController

I am using ABNewPersonViewController to add or edit address person. Some warnings, however, showed blow are always appreared when I tap button Done. The record data saved to system address book successfully, but I still can't understand the…
jerrylei
  • 340
  • 1
  • 11
0
votes
1 answer

iPhone contacts ABAddressBookAddRecord not working?

Im using the code below to try and make a new contact in the addressBook, for some reason when i get to the ABAddressBookAddRecord, the didset returns false and i can not figure out why. Are there functions i forgot to call because i feel like this…
IanTimmis
  • 815
  • 1
  • 8
  • 16
0
votes
1 answer

How to localize ABUnknownPersonViewController from AddressBookUI?

I tried to use ABUnknownPersonViewController in my app, but it's only in english. I think it would be better if AddressBookUI shows it automatically in system language. Is there any way to show it in other languages or I need to make my own…
aterite
  • 135
  • 7
0
votes
1 answer

Iterating through contacts in ABAddressBookRef

I'm trying to iterate through contacts (ABRecordRef's) in the address book(ABAddressBookRef). The app crashes when trying to copy kABPersonKindProperty property of the ref to check whether its a person contact or a company contact. ABAddressBookRef…
Dunes Buggy
  • 1,779
  • 1
  • 21
  • 41
0
votes
1 answer

ABAddressbook crash CFStringRef

I have an app which gets users address book first and last name. I have tested in both Simulator and on my own iPhone 4S running iOS 7 with XCode 5 and it works and runs fine. Lately some international users have been complaining that my app keeps…
Sam B
  • 27,273
  • 15
  • 84
  • 121
0
votes
1 answer

Address Book framework, app freezes while saving

I am writing an app for editing address book group, it is running a lot of changes like remove all contact from book, add all contacts, etc. The problem is that when the methods are running the app freezes UI, I understand that it happens because of…
0
votes
2 answers

ABPerson in Core Data

I'm trying to figure out to store a reference to an ABPerson in a Core Data store on an iPhone app. Ultimately, I'd like to be able to sync with a Mac version of the app (I'm assuming ABRecordIDs wouldn't be the same for the iPhone and the Mac). I…
shosti
  • 7,332
  • 4
  • 37
  • 42
0
votes
1 answer

ABPeoplePickerView is leaving hidden windows? (OSX)

This is how I discovered the problem: My app has a small dialog window with an ABPeoplePickerView. This window (or its controller) is correctly deallocated when finished with. When the app terminates, in applicationShouldTerminate: I iterate through…
AlexT
  • 596
  • 7
  • 15
0
votes
2 answers

ABRecordCopyValue() EXC_BAD_ACCESS Error while getting kABPersonFirstNameProperty

I am upgrading my Application written a year ago for iOS 6 to iOS 7/8 and I am getting this EXC_BAD_ACCESS error which never occurred in my old version. In my application I am trying to fetch certain contact information like first name, last name,…
rohan-patel
  • 5,772
  • 5
  • 45
  • 68
0
votes
1 answer

Custom text over ABPeoplePickerNavigationController "All Contacts" header

In Apple Calendar app, if you inviting people to event you will see specific text under header: In my app I'm using people picker too. I would like to add a custom hint for a user over All Contacts header. IBAction for a button: -…
Boris Y.
  • 4,387
  • 2
  • 32
  • 50