Open woniesong92 opened 9 years ago
I am not sure if this is the same issue I had, but I got that error and the issue was I was not setting my data source delegate on the field.
Something in the controller or view:
self.fieldName.autoCompleteDataSorce = self; self.fieldName.autoCompleteDelegate = self; self.fieldName.Delegate = self;
However, since I handled all my code in one field (probably not the best decision on my part) and you did not this exact code will not work for you, but maybe will point you in a helpful direction.
Hi @woniesong92 any solution found to the issue???
hi,
I have the same issue .. :(
having the same issue
having the same issue got any luck?
The problem is because it's now a weak property it no longer holds your data source object if you loose reference to it. You need to ensure that in your calling class you keep a strong reference to this object.
From the readme, I implemented
autoCompleteTextField
method, but I still get the following error message.*\ Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'An autocomplete datasource must implement either autoCompleteTextField:possibleCompletionsForString: or autoCompleteTextField:possibleCompletionsForString:completionHandler:'
AutoCompleteDataSource.h
AutoCompleteDataSource.m