Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn off auto complete #78

Open
yakubbaev opened this issue Apr 14, 2015 · 1 comment
Open

Turn off auto complete #78

yakubbaev opened this issue Apr 14, 2015 · 1 comment

Comments

@yakubbaev
Copy link

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.

@csknns
Copy link
Contributor

csknns commented Apr 14, 2015

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(@[]);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants