CNUI ERROR Selection predicates are set but the delegate does not implement contactPicker:didSelectContact:

后端 未结 1 1703
我在风中等你
我在风中等你 2021-01-14 04:07

I try to use the new iOS 9.0 CNContactPickerViewController to select a contact in objective-C. I set the delegate and implement the CNContactPickerD

相关标签:
1条回答
  • 2021-01-14 04:47

    Thanks to Joel in my related question With CNContactPickerViewController in iOS 9.0, how to enable/disable single or multiple selection?, I found that I just forgot to store the CNContactPickerViewController in a property that exists the time the user make the selection.

    So my code becomes:

    - (void) presentContacts
    {
        _contactPicker = [[CNContactPickerViewController alloc] init];
        contactPicker.delegate = self;
        ...
    }
    
    0 讨论(0)
提交回复
热议问题