MLPAutoCompleteTextField
MLPAutoCompleteTextField copied to clipboard
Turn off auto complete
Is there any way to turn off auto complete stuff and use MLPAutoCompleteTextField as a stock UITextField ? I mean without altering any of its properties, e.g inputAccessoryView.
I guess you could achieve the result you need by implementing the MLPAutoCompleteTextField datasource method and return an empty array for the possible suggestions. This will cause the autocomplete table not to appear. Something like this on the datasource class will have the desired results:
- (void)autoCompleteTextField:(MLPAutoCompleteTextField *)textField
possibleCompletionsForString:(NSString *)string
completionHandler:(void (^)(NSArray *))handler
{
handler(@[]);
}