I get contacts using ABPeoplePickerNavigationController
and when i select any one of these contacts, i get details of that person using ABPersonViewController
. From apple documents, we will get face time button on ABPersonViewController
using allowsActions:
method. But i did not get face time. I have used following code..
- (BOOL)peoplePickerNavigationController:
(ABPeoplePickerNavigationController *)peoplePicker
shouldContinueAfterSelectingPerson:(ABRecordRef)person {
// NSLog(@"shouldContinueAfterSelectingPerson");
ABPersonViewController *picker = [[ABPersonViewController alloc] init] ;
picker.personViewDelegate = self;
picker.displayedPerson = person;
picker.displayedProperties=@[@(kABPersonPhoneProperty),@(kABPersonEmailProperty),@(kABPersonBirthdayProperty),@(kABPersonOrganizationProperty),@(kABPersonJobTitleProperty),@(kABPersonDepartmentProperty),@(kABPersonNoteProperty),@(kABPersonCreationDateProperty)];
picker.allowsActions=YES;
[self.navigationController pushViewController:picker animated:YES];}