iOS 4+ API that allows one to select a specific ABSource from the ABAddressBook.
Questions tagged [abaddressbooksource]
19 questions
19
votes
1 answer
iOS - How to search a "searchable" ABSource, with ABSourceType | kABSourceTypeSearchableMask
Has anyone ever succeeded in searching for names in an Exchange GAL linked to an iOS device, using ABAddressBook framework, or otherwise?
I've managed to get all the names from the contacts stored on the device - that bit's easy - but it doesn't…

Sam
- 5,892
- 1
- 25
- 27
5
votes
2 answers
How do I get count of people from ExchangeGal sources using ABAddressBookCopyArrayOfAllPeopleInSourceWithSortOrdering()
I am trying to get people in three sources (1 MobileMe source and 2* ExchangeGAL sources) of my iOS 4 addressbook.
The NSLog statement always return 0 people for ExchangeGAL, but returns a count of people for MobileMe.
After getting all the…

Kb.
- 7,240
- 13
- 56
- 75
5
votes
1 answer
Get Deleted contact using ABAddressBookRegisterExternalChangeCallback or any other notification
Many SO questions were raised regarding listening to iOS address book change callback. Famous question Address book sync.
But my question is narrow, i.e. How can we get which contacts were deleted during addressbook sync callback.
void…

Mani
- 17,549
- 13
- 79
- 100
3
votes
0 answers
Programmatically access favorite and recent contacts in iOS 8
Apple introduced favorite and recent contacts in iOS 8, essentially an overlay that shows a sub-group of contacts. I've looked around a bunch but haven't seen a way to access that list. Is there any way through the API to access those?
Assuming it…

Waynn Lue
- 11,344
- 8
- 51
- 76
2
votes
1 answer
How can i delete contact from main AddressBook when i delete specific group in objective-c?
i want to delete the group on addressBook. i have try this code it is successfully delete the group but on main addressBook contact are not deleted.
CFErrorRef error = NULL;
ABAddressBookRef iPhoneAddressBook = ABAddressBookCreate();
…

sohil
- 818
- 2
- 15
- 38
2
votes
1 answer
How can i add contact on existing Group in iOS sdk
I am working on contact app in which i want to add the contact with 3 different groups (i.e. A, B, C). And for adding (creating) new contact using native contact create.
ABRecordRef person = ABPersonCreate();
ABUnknownPersonViewController…

sohil
- 818
- 2
- 15
- 38
2
votes
0 answers
ABAddressBookCopyArrayOfAllPeopleInSource return "0" object?
I'm trying to get contacts for specific Source but it is return to me 0 object.
Like u see if the source have Groups it will be add to array , but if there is no groups i just need to know number of contact in this source "for Example Google…

Omarj
- 1,151
- 2
- 16
- 43
2
votes
1 answer
Allow access to iPhone contact for my app in iOS 5.0
In my application I am accessing phone contact of iPhone so it will ask first time to allow access,but if user will click on "Don't allow" than application will not be able to access phone contact.
I know that in iOS 6.0 there is a option of privacy…

Aakil Ladhani
- 984
- 9
- 32
1
vote
1 answer
How to modify a contact number in address book programmatically?
I am currently writing an app which should enable the user to modify the contact details (mainly numbers) in the app, and then these modifications should be reflected directly to the Address Book.
I searched thoroughly on the internet, but all the…

Tamer
- 537
- 1
- 7
- 15
1
vote
1 answer
Read name of ABSource
I want to read the name of an ABSource in the addressBook framework.
Is this possible? The following code sample leaves me with null, while the currentSource pointer is valid.
NSString* stringName =…

Martin Reichl
- 932
- 9
- 13
1
vote
1 answer
Check if ABMultiValueRef is has no values
I want to check if a contact in my user's addressbook a phone number has. If he does, I want to display that name in an UITableView
I've tried to check for phoneNumbers != nil, but that doesn't work. This is my entire code:
ABMultiValueRef…

bdv
- 1,154
- 2
- 19
- 42
1
vote
0 answers
ABAddressBook -- Search Exchange AddressBook Source?
I'm trying to create an app with a custom interface for searching through one's addressbook. Searching the local addressbook seems easy, but I cannot figure out how to search for a person/record in an Exchange addressbook source (i.e. ABSourceType…

RyanM
- 5,680
- 9
- 45
- 55
0
votes
1 answer
App freezes when requesting access to addressbook
func getContacts() {
let store = CNContactStore()
if CNContactStore.authorizationStatus(for: .contacts) == .notDetermined {
store.requestAccess(for: .contacts, completionHandler: { (authorized: Bool, error: NSError?) -> Void in
…

Chris Mikkelsen
- 3,987
- 9
- 29
- 41
0
votes
0 answers
Execution is stopped with AddressBook Code in iOS during First Install of App
I want to retrieve contacts from AddressBook into my App. The code is having problem for first install, next time onwards it is working fine. For the first installation of App, if AddressBook code executes, the App hangs. After execution of…

Sudheer Kumar Palchuri
- 2,919
- 1
- 28
- 38
0
votes
1 answer
Address Book iOS : Contact name from string
I am trying to automatically add contact to the iOS address book from my app, where the name of the contact is from a NSString. I have tried to figure it out (see code under), but It didn't work. It works to add contacts with the first code I have…

ThomasGulli
- 604
- 1
- 7
- 20