abpeoplepickerview

ABPeoplePickerNavigationController display all contact data in a single cel

强颜欢笑 提交于 2019-12-12 01:13:21
问题 Hi i am developing a app where when i click contacts it goes to ABpeoplePicekrNavigationcontroller and display all contacts in the form of list in the table.But i want to select all contacts so that i want to perform some action.So how can i achive this. I am not sure this is the right question to ask.Actually i am trying to send the contact information to next screen instead of selecting single contact information everytime i want to select whole contact list.So how can i do this?? I thought

Access to people info in iPhone address book

♀尐吖头ヾ 提交于 2019-12-10 21:26:19
问题 I need to give user opportunity to choose phone number from address book, so I took example from apple manual. But it takes only the first number, how I can make so user can choose one of one's numbers in address book. - (IBAction)adressBook:(UIButton *)sender { ABPeoplePickerNavigationController *picker = [[ABPeoplePickerNavigationController alloc] init]; picker.peoplePickerDelegate = self; [self presentModalViewController:picker animated:YES]; } - (void

ABPeoplePickerNavigationController customisation

左心房为你撑大大i 提交于 2019-12-08 02:39:25
I want to use ABPeoplePickerNavigationController but I want to customise the view. I want to have an accessory image by some of the contacts, and I want to sort them in a different way than the default one. Is there a way to do it? Or do I have to create my own UITableViewController ? You'll have to create your own table view if you want to customize the appearance of the contacts in this manner. For example, you can extract the contacts using: - (void)loadContacts { ABAuthorizationStatus status = ABAddressBookGetAuthorizationStatus(); if (status == kABAuthorizationStatusDenied) { // if you

Add phone number to existing contact

倖福魔咒の 提交于 2019-12-06 11:48:14
问题 I am trying to add a phone number to an existing contact using the AddressBook framework, after selecting a person with the picker this method is called: - (BOOL) peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person { if(_phoneNumber != nil) { ABMutableMultiValueRef multiPhone = ABMultiValueCreateMutableCopy (ABRecordCopyValue(person, kABPersonPhoneProperty)); ABMultiValueAddValueAndLabel(multiPhone, (_

Add phone number to existing contact

为君一笑 提交于 2019-12-04 17:14:26
I am trying to add a phone number to an existing contact using the AddressBook framework, after selecting a person with the picker this method is called: - (BOOL) peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person { if(_phoneNumber != nil) { ABMutableMultiValueRef multiPhone = ABMultiValueCreateMutableCopy (ABRecordCopyValue(person, kABPersonPhoneProperty)); ABMultiValueAddValueAndLabel(multiPhone, (__bridge CFTypeRef)_phoneNumber, kABPersonPhoneOtherFAXLabel, NULL); ABRecordSetValue(person,

iOS Getting selected contacts' email address in array

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 16:57:06
What I'm trying to do is show the people picker to the user, make him select all the contacts he wants, and finally get all those contacts' email addresses in an array. The best would be showing only contacts with email to the user. Until now the only thing I've been able to do is presenting the people picker with this code: ABPeoplePickerNavigationController *picker = [[ABPeoplePickerNavigationController alloc] init]; picker.peoplePickerDelegate = self; [self presentModalViewController:picker animated:YES]; Then I was trying to use this code to get the selected contacts' email: - (BOOL

Weird crash in ABPeoplePicker

浪尽此生 提交于 2019-12-02 17:48:49
问题 I'm using ABPeoplePicker and I'm getting a strange crash: Assertion failure in -[UISearchDisplayController setActive:animated:], /SourceCache/UIKit/UIKit-1447.6.4/UISearchDisplayController.m:589 2011-01-26 22:30:37.041 Watches[3784:307] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'search contents navigation controller must not change between -setActive:YES and -setActive:NO The crash is occurring after the user uses the search field and then picks

Weird crash in ABPeoplePicker

☆樱花仙子☆ 提交于 2019-12-02 09:18:13
I'm using ABPeoplePicker and I'm getting a strange crash: Assertion failure in -[UISearchDisplayController setActive:animated:], /SourceCache/UIKit/UIKit-1447.6.4/UISearchDisplayController.m:589 2011-01-26 22:30:37.041 Watches[3784:307] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'search contents navigation controller must not change between -setActive:YES and -setActive:NO The crash is occurring after the user uses the search field and then picks a resulting candidates. My delegate's peoplePickerNavigationController

How to get an email using ABPeoplePicker?

余生长醉 提交于 2019-12-02 07:03:20
问题 I'm not finding Apple's documentation very helpful for actually getting data with a people picker, and there doesn't seem to be much other information on the internet :( I assume I need to get the email in this function: - (BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person property:(ABPropertyID)property identifier:(ABMultiValueIdentifier)identifier { } What can I put in there to get the email of the

How to hide/Remove the search bar on Contact Picker

青春壹個敷衍的年華 提交于 2019-12-02 05:24:55
问题 I am adding a contact picker in my app, however, I do not want the search functionality. How to hide/Remove the search bar on Contact Picker (ABPeoplePickerNavigationController)? 回答1: static BOOL foundSearchBar = NO; - (void)findSearchBar:(UIView*)parent mark:(NSString*)mark { for( UIView* v in [parent subviews] ) { //if( foundSearchBar ) return; NSLog(@"%@%@",mark,NSStringFromClass([v class])); if( [v isKindOfClass:[UISearchBar class]] ) { [(UISearchBar*)v setTintColor:[UIColor blackColor]];