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

iOS App crash while contact syncing in background from google contacts?

I am accessing native contacts in my app and sending it to my server. Now Problem occurs when i started syncing contact from google contacts(10k contacts) on my ios device and start my app (first time after installing) than app crashes. But if my…
1
vote
2 answers

ABAddressBook filtered contacts

I want to show the filtered list of contacts in ABPeoplePickerNavigationController, the persons who have their email address should be shown, and those who dont have email address should not be in the list, anybody knows how to do it? Thanks in…
waheeda
  • 1,097
  • 1
  • 9
  • 18
1
vote
1 answer

What is the labels order in ABMultiValueCopyLabelAtIndex()

I am testing with iOS AddressBook framework and I am trying to figure what, what's the best way to extract the value at specific label and wondering at the same time if the order of these labels change, for any random reason. This is what I am doing…
Mickey Mouse
  • 1,731
  • 3
  • 24
  • 40
1
vote
1 answer

Sort contacts with CFArraySortValues in Swift

In Objective-C, I'd sort an array of people as follows: CFArraySortValues(mutablePeople, CFRangeMake(0, CFArrayGetCount(mutablePeople)), (CFComparatorFunction) ABPersonComparePeopleByName, …
Ashley Mills
  • 50,474
  • 16
  • 129
  • 160
1
vote
0 answers

How to search for the name and surname using Swift for OS X and avoid duplicate results

I am trying to create a code in Swift for OS X and one of its function is to searches for Address Book entries. The code bellow finds the entries and works fine with one search term, lets say person's name John. However, if second search term used:…
Munas
  • 111
  • 3
1
vote
2 answers

ABAddressBook memory leak

I am trying to interact with ABAddressBook, but when analysing the code in Xcode I have some memory leak warnings that I cannot resolve. I get the warnings "Potential leak of an object" and "Potential leak of an object stored into 'allContacts'" +…
Jorn
  • 1,054
  • 9
  • 25
1
vote
0 answers

iOS ABAddressBookCopyArrayOfAllPeople not displaying all contacts

This is the code that i am using to fetch all the contact details in my iphone.It is working allright,But not all the contacts are displayed here.any idea why it is happening ? By using addresspicker,i can see all those missing names and numbers. …
abhimuralidharan
  • 5,752
  • 5
  • 46
  • 70
1
vote
1 answer

Unable to access kABPersonNoteProperty

I have the following code which copies data from the iPhone's contacts into an NSMutableDictionary. I'm using optional binding as discussed in this answer. The firstName and lastName fields copy properly (as well as phone and email fields not shown…
blwinters
  • 1,911
  • 19
  • 40
1
vote
1 answer

How to launch an ABPeoplePickerNavigationController of only contacts that have mobile numbers?

Apple provided a sample project called PeoplePicker that launches an ABPeoplePickerNavigationController of only contacts that have email addresses: ABPeoplePickerNavigationController *picker = [[ABPeoplePickerNavigationController alloc]…
Matthew Quiros
  • 13,385
  • 12
  • 87
  • 132
1
vote
1 answer

How do I handle selecting a property in ABPeoplePickerNavigationController?

I am having some trouble with this.. I see that we are supposed to be using the property: predicateForSelectionOfProperty for determining which properties get 'selected', and I'm actually kind of bummed for there not being a…
JP.
  • 544
  • 5
  • 20
1
vote
1 answer

Issue fetching contacts from Yahoo! Address Book using PHP's CURL

I had to get the user's yahoo address book using PHP's CURL when user gave login name and password. It was working fine. Address book has been got as CSV format. But now suddenly things are stop working. I am just getting some yahoo's html code…
Ravi
  • 41
  • 1
  • 5
1
vote
1 answer

ABAddressBookCopyPeopleWithName returns empty array on Simulator

When using the standard iOS simulator address book, ABAddressBookCopyPeopleWithName() doesn't return any results when searching for any of the names such as "Appleseed". On the device it works fine. And retrieving all records using…
Ortwin Gentz
  • 52,648
  • 24
  • 135
  • 213
1
vote
0 answers

How can i store several iphone contacts in sqlite3 table

I developed an iPhone app which displays iPhone AddressBook contacts list. I want to add extra fields to the selected contact. Using AddressBook framework,it was not possible.So,i want to attach those values to the "contacts" table of my database.…
Ramya
  • 168
  • 3
  • 10
1
vote
0 answers

Why DateOfBirth saving in AddressBook one day before?

I'm using datePicker to save the dateOfBirth in my app and I'm saving it in addressBook, but it always saves a day before dateOfBirth (but in calendar event saved same date). It's strange because I'm setting: self.datePicker.timeZone = [NSTimeZone…
Yuriy
  • 25
  • 8
1
vote
1 answer

ABMultiValue address book multi-value properties compile error in Swift

Code works in Objective-C, trying to convert to Swift. I've provided the working Objective-C code and the Swift code that gives a compile error on line 10 (the for subValue in aPropertyValue ... fast enumerator. Swift error "Type 'ABMultiValue'…
VinnyC
  • 13
  • 5