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

时光总嘲笑我的痴心妄想 提交于 2019-12-01 10:12:35
PatrickV

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;
    ...
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!