abpeoplepickerview

How to get an email using ABPeoplePicker?

筅森魡賤 提交于 2019-12-02 04:14:48
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 selected person? Use ABMultiValueRef emails = ABRecordCopyValue(record, kABPersonEmailProperty); After

How to hide/Remove the search bar on Contact Picker

情到浓时终转凉″ 提交于 2019-12-01 22:49:07
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)? 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]]; v.hidden=YES; // foundSearchBar = YES; break; } if( [v isKindOfClass:[UITableView class]] ) { CGRect temp

App crash on use of PeoplePicker, but not in same view

半腔热情 提交于 2019-12-01 04:24:39
Update 2, I hope this helps someone, there is a solutions at the following link: https://discussions.apple.com/thread/5498630?start=0&tstart=0 , evidently this is an iOS bug and this work around works. I can create the new sharedPicker, but I cannot get anything from it or dismiss it, I'm not sure how to format beyond what is supplied at the link Any help on that is very welcome. So my question now is how to take the following code and actually create the code for peoplePickerNavigationControllerDidCancel: and peoplePickerNavigationController:shouldContinueAfterSelectingPerson: Thanks. I've

App crash on use of PeoplePicker, but not in same view

谁说我不能喝 提交于 2019-12-01 01:59:12
问题 Update 2, I hope this helps someone, there is a solutions at the following link: https://discussions.apple.com/thread/5498630?start=0&tstart=0 , evidently this is an iOS bug and this work around works. I can create the new sharedPicker, but I cannot get anything from it or dismiss it, I'm not sure how to format beyond what is supplied at the link Any help on that is very welcome. So my question now is how to take the following code and actually create the code for

Display ABPeoplePickerNavigationController using storyboard segue

北城余情 提交于 2019-11-30 20:16:12
I have a new project where I want to display a People Picker, when a button is touched. So I have a UIButton that segues to a generic UIViewController with the identifier showContacts . I set the class of this ViewController to ABPeoplePickerNavigationController . Now in my root ViewController I have this code to initialize my picker: #pragma mark - Segues -(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{ if([segue.identifier isEqualToString:@"showContacts"]){ ABPeoplePickerNavigationController *ppnc = segue.destinationViewController; ppnc.peoplePickerDelegate = self; ppnc

Display ABPeoplePickerNavigationController using storyboard segue

萝らか妹 提交于 2019-11-30 04:03:35
问题 I have a new project where I want to display a People Picker, when a button is touched. So I have a UIButton that segues to a generic UIViewController with the identifier showContacts . I set the class of this ViewController to ABPeoplePickerNavigationController . Now in my root ViewController I have this code to initialize my picker: #pragma mark - Segues -(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender{ if([segue.identifier isEqualToString:@"showContacts"]){

How can I change the look of ABPeoplePickerNavigationController so that i can see phone number type (home,mobile etc)

∥☆過路亽.° 提交于 2019-11-29 14:45:27
I am using ABPeoplePickerNavigationController in my app ,but client wants to see label of phone number infront of name say "Name number type" Ali mobile Ali home is there a way to customize ABPeoplePickerNavigationController to fulfill this requirement? thanks Aditya If you want to customize the address book according to your requirements, I suggest you should not use ABPeoplePickerNavigationController. Instead of that make the use of Address Book object, retrieve data from your address book and display those data in your custom ViewController.In this way you will be able to customize your

How can I change the look of ABPeoplePickerNavigationController so that i can see phone number type (home,mobile etc)

让人想犯罪 __ 提交于 2019-11-28 08:33:49
问题 I am using ABPeoplePickerNavigationController in my app ,but client wants to see label of phone number infront of name say "Name number type" Ali mobile Ali home is there a way to customize ABPeoplePickerNavigationController to fulfill this requirement? thanks 回答1: If you want to customize the address book according to your requirements, I suggest you should not use ABPeoplePickerNavigationController. Instead of that make the use of Address Book object, retrieve data from your address book

ABPeoplePickerNavigationController changes with iOS8?

こ雲淡風輕ζ 提交于 2019-11-27 12:17:16
Since I have updated XCode (6.0, 6A313) and my iOS (8.0, 12A365) on the iPhone to gm seeds, the ABPeoplePickerNavigationController code doesn't work like before. iOS 7.1.2: If someone want to import a contact, the address book opens and you see the full list of contacts, after picking one, it opens detail view of an contact and than you can add the contact with a click of the phone number you want to import. iOS 8.0: its everything similar but if you click on number of an contact it dial the phone number instead of importing it.. Code: #pragma mark - AddressBook Delegate Methods -(BOOL

ABPeoplePickerNavigationController changes with iOS8?

我只是一个虾纸丫 提交于 2019-11-26 15:57:44
问题 Since I have updated XCode (6.0, 6A313) and my iOS (8.0, 12A365) on the iPhone to gm seeds, the ABPeoplePickerNavigationController code doesn't work like before. iOS 7.1.2: If someone want to import a contact, the address book opens and you see the full list of contacts, after picking one, it opens detail view of an contact and than you can add the contact with a click of the phone number you want to import. iOS 8.0: its everything similar but if you click on number of an contact it dial the