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

fetching phone number from address book

I am using the following code to get mobile number (i.e. 1st phone number) of all contacts in my address book. I want to store all those number into NSArray self.dataSource = [[NSMutableArray alloc]init]; // dataSouce is delared in .h…
Ankur Arya
  • 4,693
  • 5
  • 29
  • 50
0
votes
1 answer

how to ignore FB/Other social contacts in address book when counting contacts

I need to get the count of only my local contacts from Address Book, not any social networks. How do i filter other contacts out programmatically? In another words, how Contacts application shows separately iCloud groups and Facebook group. How do…
Nava Carmon
  • 4,523
  • 3
  • 40
  • 74
0
votes
2 answers

Why does this typecast not apply itself?

I've been working on this problem for a while and can't seem to find the solution. In my app, I uniquely identify contacts from ABAddressBook by their creation date, as no two contacts can be created at the same time. In my app, the creation date is…
pasawaya
  • 11,515
  • 7
  • 53
  • 92
0
votes
1 answer

adding contact phone numbers to multiple uitextfiels

I have a uibutton that when tapped brings up the contacts list and adds the selected phone number to a uitextfield.Here's the code i am using. - (IBAction)contact1:(id)sender { ABPeoplePickerNavigationController *picker1…
user1725650
  • 7
  • 1
  • 4
0
votes
1 answer

Lack of data when getting person from ABPeoplePickerNavigationController

I have strange behavour of AddressBook framework. I'm creating and showing people picker controller this way: ABPeoplePickerNavigationController *picker = [[ABPeoplePickerNavigationController alloc] init]; picker.peoplePickerDelegate =…
dieworld
  • 1,090
  • 9
  • 9
0
votes
2 answers

Adding an unknown number of annotations to MKMapView

So I am using the map to add points for each person that has an address in the contacts, and I am having a bit of a hard time figuring out how to set it up for the unknown number of contacts. right now the way I have it set up, it is only adding a…
terry lewis
  • 672
  • 1
  • 5
  • 13
0
votes
1 answer

Get contacts updated / created after a time in address book

I am building a app that imports the phone contacts' email to the app. Instead import the whole phone address book every time, I want only import the updated/created one after last updating time. Is there a way to do it? I tried to look around but…
Zhao
  • 904
  • 1
  • 11
  • 34
0
votes
1 answer

iOS MFMailComposeViewController and getting users Name from contact card

I want to get the "Me" card's Name so when i create the mail window with MFMailComposeViewController I can MFMailComposeViewController *mailer = [[MFMailComposeViewController alloc] init]; mailer.mailComposeDelegate = self; [mailer…
Cocoa Dev
  • 9,361
  • 31
  • 109
  • 177
0
votes
1 answer

Simplest way to add twitter account to ABRecordRef (person)

So I needed to add a twitter account into an ABRecordRef. However, it seems like the fastest way to do it is to get the multivalue ref of the social profile property, create a mutable version of it, find if it has a twitter entry, and if it already…
kamziro
  • 7,882
  • 9
  • 55
  • 78
0
votes
1 answer

App crashes dur to NSMutable Array

I am getting a issue with NSMutableArray. I have used that to store contact details form address book. I have 300 contacts in address book. But my app is going to crashes. I have used this code +(NSMutableArray *)getcontactdetails { …
ios
  • 552
  • 5
  • 22
0
votes
0 answers

Set text in search bar of picker view for Address Book

I have followed Apple's programming guide to extract a phone number from a user's Address Book. What I would like to do is to set a search value in the search bar of the picker view of the Address Book to narrow the list. Can it be done? Note: I do…
Rick
  • 1,818
  • 1
  • 15
  • 18
0
votes
1 answer

Need way to display iPhone addressbook contacts

I have been following many examples to add addressbook functionality to one of my views. I am getting stumbled between Addressbook API, ABPeoplePickerNavigationController and how to fit them into UITableView. I am highly confused as to what all…
Nirav Bhatt
  • 6,940
  • 5
  • 45
  • 89
0
votes
1 answer

Getting subarray of Address Book

I'm trying to get just the first 100 of contacts from the Address Book. What I've done is getting all the contacts and then tried to get only the first 100. For some reason that doesn't work (code below). ABAddressBookRef addressBook =…
Idan
  • 9,880
  • 10
  • 47
  • 76
0
votes
3 answers

convert kABPersonPhoneProperty to arabic numbers

I'm reading phone numbers from the phone address book , some numbers are saved there in non arabic numbers i.e ( ١٢٣٤٥٦٧٨٩ ) how can i convert these numbers to arabic numbers ( 123456789 ) that's how i extract the numbers CFTypeRef…
ahmad
  • 1,212
  • 1
  • 14
  • 28
0
votes
2 answers

cocoa: is there any way to custom the view(such as ABPeoplePicker View) supplied by Cocoa library

I need to use ABPeoplePickerView to implement my AddressBook application. the view in IB is like this: and it's like the following after running: I want to delete the search field and add a button(like "add") on the top, but I don't know how to…
NOrder
  • 2,483
  • 5
  • 26
  • 44