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

Check if Address Book contact phone number is mobile

I can successfully retrieve the phone numbers associated to a contact, but for sharing purposes I need to find out which number is the contact's mobile phone number. The type can be retrieved using the following code; ABMultiValueRef phonesRef =…
AlBirdie
  • 2,071
  • 1
  • 25
  • 45
0
votes
1 answer

Keep reference of ABPerson in CoreData

I'm trying to keep the phone's contacts in my app up to date, in a persistent way. For that I'm thinking of using Core Data. My plan right now seems highly suboptimal : Browse the address book and every ABPerson in it Store every field in a…
Gil Sand
  • 5,802
  • 5
  • 36
  • 78
0
votes
1 answer

Why using CFBridgingRelease, the count of result array is less than the original?

I'm trying to use ABAddressBook and here is my approach: CFErrorRef *error = NULL; self.addressBook = ABAddressBookCreateWithOptions(NULL, error); self.source = ABAddressBookCopyDefaultSource(self.addressBook); self.allPeople =…
Arash R
  • 402
  • 6
  • 14
0
votes
1 answer

Stuck in Accessing Contacts from PhoneBook in IOS

I want to access all contacts from phonebook in IOS. I have tried below code CFErrorRef error = NULL; ABAddressBookRef addressBook = ABAddressBookCreateWithOptions(NULL, &error); if (addressBook != nil) { …
0
votes
2 answers

IOS Could not compile statement for query

I writting a application, sync contact from server to client. But i have a problem, i get all contact from server to client, When I save a few contacts, application error. AB: Could not compile statement for query…
Takeshi
  • 221
  • 1
  • 4
  • 16
0
votes
2 answers

Count total number of Phone Numbers in AddressBook iPhone

I am trying to get the total count for the phone numbers listed in the AddressBook, in all groups as a whole. I can successfully retrieve Person count and Group count, just not the total number of Phone Numbers. ABAddressBookRef m_addressbook =…
WrightsCS
  • 50,551
  • 22
  • 134
  • 186
0
votes
1 answer

ABAddressBookCopyArrayOfAllPeopleInSourceWithSortOrdering not working

ABAddressBookRef addressBook = ABAddressBookCreateWithOptions(NULL, error); __block BOOL accessGranted = NO; if (ABAddressBookRequestAccessWithCompletion != NULL) { // we're on iOS 6 dispatch_semaphore_t sema = dispatch_semaphore_create(0); …
0
votes
1 answer

App crashes when UITableView loads from Core Data repetitively, bad pointer?

I am making an app where the user selects a contact from the address book and adds it to a table view. I implemented this by creating an addressBook object, using a peoplePicker, storing the ABRecordID object in Core Data as an NSNumber, pulling the…
gmh
  • 35
  • 7
0
votes
1 answer

find ios ABRecordRef contact in AddressBook by phone, email, name

I need to find a contact in AdreesBook in order to add a new social network. Sometimes I have to find a contact by its phones and emails or by its phones, firstName and lastName, is there any kind of query to get ABRecordRef contact instead of doing…
Aarranz
  • 461
  • 6
  • 20
0
votes
1 answer

How to stop rotation of ABPersonViewController & ABNewPersonViewController in Landscape mode in iphone

I am using a ABPersonViewController and ABNewPersonViewController class by pushview controller. ABPersonViewController *pvc = [[ABPersonViewController alloc] init]; [pvc setPersonViewDelegate:self]; [[self navigationController]…
0
votes
0 answers

How to fetch one contact at a time from the addressbook without using ABAddressBookCopyArrayOfAllPeople?

Currently we are able to fetch all the contacts in the addressbook using ABAddressBookCopyArrayOfAllPeople which returns an Array of contact objects. If we have a huge number of contacts on the phone then the memory being allocated to the array will…
Alexander
  • 25
  • 5
0
votes
1 answer

iOS AddressBook Swift BadAccess

So here's the deal: I am building an app that accesses the internal addressbook on the iPhone. Everything was working fine (and is working fine on the simulator still), but now on the device I get a ThreadBreak and lldb opens up with no error…
0
votes
1 answer

Can i edit an existing contact from ABaddressBook without ABPersonViewController?

I have created a custom address book that copy the native address book list with contacts. Now, in detail view controller I managed to ADD a new contact and REMOVE an existing contact from native address book. I want to edit an existing contact and…
0
votes
1 answer

How to retrieve remote outlook contacts programmatically in xcode

In my app i want to search into my contacts - be it for local contacts or remote contacts that can be retrieved from exchange account or some other mail accounts(just like the mail app does). I am pretty clear about the local searching and fetching.…
simply_me
  • 384
  • 1
  • 11
0
votes
0 answers

Which Security mechanism to be used while sending iPhone contacts to web server

I am creating app , in which i also need to display All contacts and same app users like whatsapp. and i have read somewhere we can't send directly contacts to server, instead we have to use some Secure Algorithm. What kind of encryption should i…
sambhav
  • 39
  • 4