3

Im using the ContactPickerViewController with CNContactPickerDelegate to get the contact numbers

    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)

without using the search bar everything work fine

when trying to use the search bar

thanks for your help!

jerem
  • 1,016
  • 2
  • 12
  • 27
  • Hii Jerem. Did you find any solution for this? – vijju Sep 22 '18 at 09:01
  • Possible duplicate of [iOS Swift CNContactPickerViewController search contact and add to selection](https://stackoverflow.com/questions/38143951/ios-swift-cncontactpickerviewcontroller-search-contact-and-add-to-selection) – bbjay Nov 18 '18 at 14:07

1 Answers1

4

Looks like its a bug in iOS 9. It has been reported.

Check the discussion thread here https://forums.developer.apple.com/message/87148#87148

You could try using other open source alternatives

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

Or write your own tableview that implements the functionality.