gpt4 book ai didi

ios - peoplePicker NavigationController : shouldContinueAfterSelectingPerson method not work?

转载 作者:行者123 更新时间:2023-12-01 18:13:34 25 4
gpt4 key购买 nike

我正在运行以下代码,它利用 Apple 的地址簿 UI。取消方法有效,但我的 shouldContinueAfterSelecting 无效。当我单击通讯簿 View Controller 中的联系人时,我希望记录单词 Test。我应该使用另一种方法吗?

-(void)peoplePickerNavigationControllerDidCancel:(ABPeoplePickerNavigationController *)peoplePicker {
NSLog(@"Test");

[self dismissModalViewControllerAnimated:YES];
}


-(BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person {
NSLog(@"Test");
return NO;
}

-(BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecordRef)person property:(ABPropertyID)property identifier:(ABMultiValueIdentifier)identifier {
NSLog(@"Test");
return NO;
}

最佳答案

此方法已弃用。苹果文档说:

采用

peoplePickerNavigationController:didSelectPerson:

或者
peoplePickerNavigationController:didSelectPerson:property:identifier:

关于ios - peoplePicker NavigationController : shouldContinueAfterSelectingPerson method not work?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25333605/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com