peoplePickerNavigationController didSelectPerson未调用链接联系人

时间:2014-12-28 09:32:02

标签: contact abpeoplepickerview abpersonviewcontroller abperson

当用户使用ABPeoplePickerNavigationController点击Linked Contact的属性时 - 既不是 - (void)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker didSelectPerson:(ABRecordRef)person property:(ABPropertyID)property identifier:(ABMultiValueIdentifier)identifier 正在调用(BOOL) peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person property:(ABPropertyID)property identifier:(ABMultiValueIdentifier)identifier。 对于常规联系人来说这非常有用 我做错了什么?

以下是我显示联系人的方式:

ABPeoplePickerNavigationController *picker = [[ABPeoplePickerNavigationController alloc] init];
    NSArray *displayedItems = [NSArray arrayWithObjects:[NSNumber numberWithInt:kABPersonPhoneProperty],
                               [NSNumber numberWithInt:kABPersonEmailProperty], nil];


    picker.displayedProperties = displayedItems;
    picker.peoplePickerDelegate = self;
    [self presentViewController:picker animated:YES completion:nil];

0 个答案:

没有答案