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
14
votes
3 answers

how to sort iphone contact book?

How can i sort (or retrieve sorted array of ) an iphone contact book by first name & last name programmatically ?? Any help will be well appreciated...! Thanks
Matrix
  • 7,477
  • 14
  • 66
  • 97
14
votes
4 answers

iOS 6 Address Book not working?

My method of programmatically retrieving e-mail addresses from the Address Book no longer seems to work on iOS 6 devices. It worked in iOS 5 and oddly, still works in the iOS 6 Simulator. Is there a new way to programmatically retrieve contacts from…
Keller
  • 17,051
  • 8
  • 55
  • 72
13
votes
1 answer

Register to Addressbook changes, using ABAddressBookRegisterExternalChangeCallback

I really need some help here. I do exactly the same as in all the examples, but don't get any notification. Here's my code: #import #import Registering for notification: ABAddressBookRef…
Gal
  • 1,582
  • 2
  • 14
  • 30
13
votes
3 answers

Cocoa method to return a list of all letters in the current locale's alphabet?

I'm currently trying to implement a UITableView with a delegate and data source that replicates, as closely as possible, the functionality found the ABAddressBookUI framework's ABPeoplePickerNavigationController class, but with the added ability to…
Rich Pollock
  • 1,190
  • 12
  • 15
13
votes
3 answers

Android fetch all contact list (name, email, phone) takes more then a minute for about 700 contacts

Is there any way to shorten this time? I'm running with the cursor and takes the name, phone numbers and emails if I remove the phone numbers query from the query loop it ends in 3 seconds any idea how can I improve that query? Maybe I'm doing…
itay83
  • 410
  • 1
  • 6
  • 18
13
votes
4 answers

Programmatically add contact in Swift

I want to add a contact (just the name and phone number) programatically in Swift. I've found some Objective-C examples but I didn't get them to work, not even in Objective-C. I don't want this to involve AddressBookUI, because I want to get the…
bjornorri
  • 369
  • 1
  • 3
  • 11
13
votes
3 answers

Correct vCard format for iOS devices?

In iOS 5 and above, Apple introduced the ABPersonCreatePeopleInSourceWithVCardRepresentation method, which is pretty useful in feeding a vCard to the Address Book and getting back the ABRecordRefs for the persons created. However, the Apple vCard…
Alex
  • 7,432
  • 20
  • 75
  • 118
12
votes
1 answer

How to add new contact to iOS Contacts (Address Book)?

I want to save contact directly to an iOS device's Address Book programmatically. How can I do it?
Chatar Veer Suthar
  • 15,541
  • 26
  • 90
  • 154
12
votes
2 answers

Customizing table cell in ABPeoplePickerNavigationController

I've spent some time searching for this answer on SO, but couldn't find it, so here goes: I'm starting with an ABPeoplePickerNavigationController, and when a user taps a person, they'll be taken to an ABPersonViewController where they'll be able to…
djibouti33
  • 12,102
  • 9
  • 83
  • 116
12
votes
3 answers

Swift - Checking unmanaged address book single value property for nil

I'm relative new to iOS-Development and swift. But up to this point I was always able to help myself by some research on stackoverflow and several documentations and tutorials. However, there is a problem I couldn't find any solution yet. I want to…
Rob
  • 123
  • 1
  • 6
12
votes
2 answers

ABAddressBookCreate deprecated

I'm creating an application that will save a contact to the address book, but when I use ABAddressBookCreate to my code, it appear as a warning. I'm coding in iOS 7. My question is, what is the substitute for ABAddressBookCreate in iOS 7. Any help…
user3300758
  • 275
  • 1
  • 4
  • 13
12
votes
3 answers

Assign ringtone to contact or group of contacts in iphone

I checked the documentation but could not find anywhere regarding assigning ringtone to a group of contacts programmatically. I was wondering is it even possible without using Private API and app store safe ? My question is the duplicate of this and…
Janak Nirmal
  • 22,706
  • 18
  • 63
  • 99
12
votes
2 answers

NSDate return "1604" for year value?

I'm try to get birth data for contacts but if user does not choose year or the contact come from Facebook and the year or the data it self is hidden so it give me the "1604" value for the year u can see what i mean in the image.
Omarj
  • 1,151
  • 2
  • 16
  • 43
11
votes
2 answers

PersonViewController in TabBarController

I have a UITabBarController with three tabs. When a certain one is pressed, I'd like the user to immediately see a person view controller (an instance of the ABPersonViewController class). I don't want to just use the presentViewController() method…
5813
  • 1,073
  • 3
  • 14
  • 28
11
votes
1 answer

How whatsapp get updated contacts from addressbook faster in iOS?

My findings I am designing a logic to sync contact with my Backend. I gone through some apps that doing same thing in IOS. I will take the example of WhatsApp, I found that When I update any contact in Native Addressbook, it reflect that change into…
Mrug
  • 4,963
  • 2
  • 31
  • 53
1
2
3
54 55