gpt4 book ai didi

swift - 使用搜索栏时无法选择联系人

转载 作者:搜寻专家 更新时间:2023-10-31 22:20:37 25 4
gpt4 key购买 nike

我使用带有 CNContactPickerDelegate 的 ContactPickerViewController 来获取联系电话

    func contactPicker(picker: CNContactPickerViewController,
didSelectContacts contacts: [CNContact])
{...}

但是当我尝试使用搜索栏查找联系人时,选择框消失了(如果我点击相关单元格,联系人仍未被选中)

without using the search bar everything work fine

when trying to use the search bar

感谢您的帮助!

最佳答案

看起来像是 iOS 9 中的错误。已报告。

在这里查看讨论线程 https://forums.developer.apple.com/message/87148#87148

您可以尝试使用其他开源替代方案

EPContactsPicker - https://github.com/ipraba/EPContactsPicker

或者自己编写实现功能的tableview。

关于swift - 使用搜索栏时无法选择联系人,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38911669/

25 4 0