This question is locked. New answers and comments are not allowed.
Hi there.
I have set up a sample autocomplete view controller inside one of my projects. The _dataSource is an array of NSManagedObjects and the type ahead completion etc works just fine. Of course, having found my item in the long list I would like to do something with it. I can't see anything in the example project that lets me identify the selection I have made. I have the delegate working and the following does fire. It displays the correct text description of the item.
- (
void
)autoComplete:(
TKAutoCompleteTextView
*__nonnull)autocomplete
didAutoComplete
:(
NSString
* _Nonnull)completion {
NSLog
(
@"Selected : %@"
,completion);
}
Where do look to find the selected item? Ideally, this would be the id of the item I selected but I could live with its key.