Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you get a persons phone number from the address book?

Tags:

People also ask

How can I get contact details of someone?

There are dozens of sites to find people's personal contact details. Some of them include Pipl, Peekyou, Radaris, Zabasearch, Whitepages, Veromi, Argali, Anywho, Intelius, mylife, Spokeo, and Peoplesearch (this list is by no means comprehensive).

What is a phone Address Book?

Alternatively referred to as an phone book, a address book is an electronic storage of individuals' names, phone numbers, extensions, and other information used to contact those individuals.

How do I find contacts in Address Book?

Using all address books You can view contacts and send emails to people in all of your available address lists. In Outlook, choose People at the bottom of the screen. By default, you see your personal contacts. To view other address books, in the Find group of the ribbon, choose Address Book.


All I want to do is let the user select a number from the address book. I found the code in this question:

How to get a Phone Number from an Address Book Contact (iphone sdk)

ABMultiValueRef container = ABRecordCopyValue(person, property); CFStringRef contactData = ABMultiValueCopyValueAtIndex(container, identifier); CFRelease(container); NSString *contactString = [NSString stringWithString:(NSString *)contactData]; CFRelease(contactData); 

The problem is that on the second line (when running on a 3.0 device) I get the following error:

Account Manager could not find account with identifier MobileMe:rustyshelf

followed by:

Program received signal: "EXC_BAD_ACCESS".

This is all inside the picker delegate method:

- (BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person property:(ABPropertyID)property identifier:(ABMultiValueIdentifier)identifier{ 

This is just one of the contacts in my address book, which is synched with Mobile Me

Edit: I think this might be a bug with the SDK, it happens for some of my contacts but not for others...