EddyBorja / MLPAutoCompleteTextField

UITextfield subclass with autocomplete menu. For iOS.
Other
1.21k stars 223 forks source link

How to call autoCompleteTextField:possibleCompletionsForString:completionHandler forcefully #49

Open uditbatra opened 10 years ago

uditbatra commented 10 years ago

I am using a web method response to generate data. How can i handle make autoCompleteTextField:possibleCompletionsForString:completionHandler call on webmethod response

JeanMeche commented 9 years ago

I took me a bit to find it :

calling becomeFirstResponder() on the Textfield will trigger a call of autoCompleteTextField:possibleCompletionsForString:completionHandler !

It works even if the textfield is already the first responder.

litt1e-p commented 7 years ago

@kyro38 it does not work, just call:

[yourTextField reloadData];

it can work!