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

Nested bridge transfer call with ARC

I'm trying to get the email address of a contact and the type of the email address (work/home). This is the code I've written //Assume that 'personRef' of type ABRecordRef is available .... ABMultiValueRef emailRef = ABRecordCopyValue(personRef,…
thandasoru
  • 1,558
  • 2
  • 15
  • 41
0
votes
0 answers

Create contacts groups

ABAddressBookRef ab = ABAddressBookCreate(); CFErrorRef error; ABRecordRef group = ABGroupCreate(); ABRecordSetValue(group, kABGroupNameProperty,@"new group", &error); ABAddressBookAddRecord(ab, group, &error); ABAddressBookSave(ab,…
Antiokhos
  • 2,944
  • 5
  • 23
  • 32
0
votes
0 answers

Repeat request for Address Book permission in iOS 6

I wanted to know if there is a way to request the Address Book permission everytime the user clicks a particular button in my app. What I understand reading from the apple docs for iOS 6.0 is that the permission dialog will only be presented once…
ashish.gd
  • 1,713
  • 1
  • 14
  • 25
0
votes
1 answer

ABPersonViewController is not showing facetime button?

I get contacts using ABPeoplePickerNavigationController and when i select any one of these contacts, i get details of that person using ABPersonViewController. From apple documents, we will get face time button on ABPersonViewController using…
Prasad G
  • 6,702
  • 7
  • 42
  • 65
0
votes
2 answers

iOS re-asking for permission to contacts

I am just double checking that you cant ask for permissions to access contacts if a user has already said no. I know you can detect if you have access and then just prompt the user to go to settings and enable access. I just wondered if you can…
Burf2000
  • 5,001
  • 14
  • 58
  • 117
0
votes
1 answer

XCode 5.0.2 simulator address book is empty

Since the update of Xcode 5.0.2, the address book of the simulator is empty. Apparently, if one wants to test address book code on the simulator, one has now to enter the test contacts by hand every time the simulator is reset. Earlier one had the…
Reinhard Männer
  • 14,022
  • 5
  • 54
  • 116
0
votes
1 answer

How to add phone work number in address book contact?

I can modify or create a new person in my address book, but I can't find how to add a property for the phone work number. According to the Apple Documentation there is no property kABPersonPhoneWorkLabel. There is the work fax number…
Tom-pouce
  • 758
  • 2
  • 11
  • 28
0
votes
1 answer

Searching the ABAddressBook for the certain phone number

I have some problem while searching the address book. I want to search for phone number using addressbook and compare to check if it matches to some other number. The plain number to which the addressbook data is to be matched is just like this…
0
votes
2 answers

Hide fields in ABNewPersonViewController

When filling in new contact information I want to show the user an ABNewPersonViewController that does not contain all default fields. I cannot figure out how to accomplish this. Is it possible to hide some fields or do I need to write my own view…
Leontien
  • 612
  • 5
  • 22
0
votes
1 answer

Android and IOS - How to knock off the country code and the 0's preceding the phone numbers

I get a list of contact numbers from the address book of the mobile (both iOS and Android). But they are all not uniform.Sometime I get phone number with countrycode like (+919912345678) or I get numbers with preceding zero like 09912345678 or I get…
Timothy Rajan
  • 1,947
  • 8
  • 38
  • 62
0
votes
1 answer

iphone Addressbook caller blocking

Since iOS7 it's possible to block a caller when she/he calls your phone... Is it possible to change this setting from within an app? The idea is having an app that lets the user block people temporarily from calling them. Another option would be to…
Swissdude
  • 3,486
  • 3
  • 35
  • 68
0
votes
1 answer

Address Book retrieve chosen phone number?

I am getting on OK with my Objective C learning but have hit a bump in my app. Below is the code I have so far, just a simple one button app with the plan to be that clicking the button will open the contacts, let you select a contact and then…
0
votes
0 answers

How to force the ABAddressBook 'Letter' sections to update after removing a contact

I am filtering contact from the ABAddressBook and then showing it using the IOS7 address book picker Ui. But I am finding the Picker UI to get out of sync... I use the following code to remove myself: ABAddressBookRef addressBook =…
DEzra
  • 2,978
  • 5
  • 31
  • 50
0
votes
1 answer

Creating a new ABRecord

I am working with ABAddressBook. I have checked out the API docs but could not find any API related to creating a new ABRecord. But in ABAddressBook, a method ABAddressBookAddRecord is available. But I didnt find any APIs available to create a new…
Mohammed Sadiq
0
votes
1 answer

ABAddressBookCreateWithOptions causes crash (unrecognized selector)

In my iPad app (Xcode 5, iOS 7, ARC, Storyboards), I'm trying to read the Address book and get all of the entries. Unfortunately, I get the following error: SalonBook[2225:a0b] -[__NSCFString count]: unrecognized selector sent to instance…
SpokaneDude
  • 4,856
  • 13
  • 64
  • 120