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
1 answer

Loading a UITableView with an array from ABAddressBook (Swift)

I have a few functions for accessing the names and emails of people with ABAddressBook. The functions append the names and emails into a connections array. The problem I'm facing is that when the user is asked for the first time to access their…
user3857868
1
vote
0 answers

Access exchange contacts on device

I have an app, that needs to get the user's contacts providing the user gave access to the contacts How do i get the exchange contacts ? I tried the normal method of accessing the phone book, but i want to create my own ui and in my own ui, only the…
Lena Bru
  • 13,521
  • 11
  • 61
  • 126
1
vote
0 answers

How to create a Read only Address group in iPad Programatically?

I was able to create a group in contacts from my app. But when the user opens the Contact app and view my group he is able to edit the contacts that was saved. I was wondering if it is possible to make a groups and contact programatically and make…
rhlnair
  • 115
  • 2
  • 7
1
vote
0 answers

Reading from AddressBook database in Today Extension (OS X)

It seems to be that Today Extensions (Widgets) are unable to access contact records via the ABAddressBook.framework. Apple is saying: Because of its focused role in the system, an app extension is ineligible to participate in certain activities.…
Raffael
  • 1,119
  • 10
  • 20
1
vote
1 answer

Why is there no Objective C AddressBook Framework for iOS, and how to best tackle the problems with C in Swift?

This might be really generic and rather about the framework in general than a programming question. But, in the light of Swift, and the tedious and sometimes impossible tasks you have interacting with C APIs, that question is very relevant. When…
TAKeanice
  • 511
  • 3
  • 14
1
vote
1 answer

IOS: Is there an easy way to format a contact's available names into a string the way the user prefers?

I need to display some sort of user friendly string that identifies a person from their address book record. Since the person records can have any combination of first name, last name, nickname, middle name and there can be any combination of user…
Andreas
  • 2,665
  • 2
  • 29
  • 38
1
vote
0 answers

Correct method of getting phone numbers from ABRecord

I am trying to get the phone numbers from an ABRecord object, and it is currently not working. Here is the code I am trying ABRecord *record = contactsArr[row]; NSString *home; NSString *iPhone; NSString *main; NSString *work; NSString…
Eytan Schulman
  • 566
  • 2
  • 4
  • 20
1
vote
1 answer

iOS AddressBook Adding multiple people to a group

I am attempting to create a feature with my app that allows people to be easily added and/or removed from a group on iOS. The code below works perfectly if I: 1) add one person at a time 2) remove one person at a time If however I select multiple…
mcoding
  • 9
  • 2
1
vote
2 answers

Unit testing an iOS static library; access AddressBook

I'm unit testing an iOS static library: so no UI, no app. One of the unit tests requires to access to the address book and retrieve the list of contacts. The problem is that as I'm not launching any app on the simulator, the popup that should ask…
quifago
  • 11
  • 1
1
vote
2 answers

IOS::How to get the contact number from ABAddressBook

Phone number getting like this. Phone ABMultiValueRef 0x17674380 with 1 value(s) 0: $!!$ (0x176740e0) - 7124779070 (0x176742a0) How to get this number"7124779070" from the above line. I'm using this code for ios 7.Is it correct or wrong ,Please…
Ravikumar
  • 85
  • 1
  • 16
1
vote
0 answers

Error when display ABPersonViewController

I create ABPersonViewController like this : ABPersonViewController *picker = [[ABPersonViewController alloc] init] ; picker.personViewDelegate = self; picker.displayedPerson =…
1
vote
1 answer

ABPeoplePickerNavigationController customisation

I want to use ABPeoplePickerNavigationController but I want to customise the view. I want to have an accessory image by some of the contacts, and I want to sort them in a different way than the default one. Is there a way to do it? Or do I have to…
bobsacameno
  • 765
  • 3
  • 10
  • 25
1
vote
1 answer

crashing application when accessing phonebook ios

ios memory leak when accessing phone book here is my orignal question and this is crash log. Memory leak problem has been resolved but application is crash when I access the contact and pop to navigation controller again push and accessing the…
gauravds
  • 2,931
  • 2
  • 28
  • 45
1
vote
1 answer

ios memory leak when accessing phone book

- (NSArray *)getAllContacts{ CFErrorRef *error = nil; ABAddressBookRef addressBook = ABAddressBookCreateWithOptions(NULL, error); __block BOOL accessGranted = NO; if (ABAddressBookRequestAccessWithCompletion != NULL) { // we're…
gauravds
  • 2,931
  • 2
  • 28
  • 45
1
vote
2 answers

iPhone address book - get phone number as string with numbers only

I am getting a phone number from the address book and I put it in an NSString* : ABMultiValueRef phoneProperty = ABRecordCopyValue(person,property); NSString *phone = (__bridge_transfer…
bobsacameno
  • 765
  • 3
  • 10
  • 25