[英]contact selection not possible when using the search bar
Im using the ContactPickerViewController with CNContactPickerDelegate to get the contact numbers 我使用ContactPickerViewController和CNContactPickerDelegate来获取联系号码
func contactPicker(picker: CNContactPickerViewController,
didSelectContacts contacts: [CNContact])
{...}
but when I try to use the search bar to find a contact , the selection box disappear (also if I click on the relevant cell , the contact remain unselected) 但是当我尝试使用搜索栏查找联系人时,选择框会消失(如果我点击相关单元格,联系人仍然未被选中)
thanks for your help! 谢谢你的帮助!
Looks like its a bug in iOS 9. It has been reported. 看起来它是iOS 9中的一个错误。据报道。
Check the discussion thread here https://forums.developer.apple.com/message/87148#87148 请查看讨论主题https://forums.developer.apple.com/message/87148#87148
You could try using other open source alternatives 您可以尝试使用其他开源替代方案
EPContactsPicker - https://github.com/ipraba/EPContactsPicker EPContactsPicker - https://github.com/ipraba/EPContactsPicker
Or write your own tableview that implements the functionality. 或编写自己的实现该功能的tableview。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.