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

minimumCharactersToTrigger #11

Open
FreudGit opened this issue Apr 28, 2014 · 2 comments
Open

minimumCharactersToTrigger #11

FreudGit opened this issue Apr 28, 2014 · 2 comments

Comments

@FreudGit
Copy link

Hi

I try to set the "minimumCharactersToTrigger" to zero, to have all the suggestion when keyboard appear, doesn't work.

(by the way, nice work!)

@FreudGit
Copy link
Author

Also, even if I add "self.textField.text=@"on";

when I click in the field, the toolbar are not visible. (appear only when I type something)

@0xced
Copy link

0xced commented Feb 6, 2018

Here is how I worked around this issue:

- (void) textFieldDidBeginEditing:(UITextField *)textField
{
    // Force displaying all suggestions when beginning edition of text field
    id<UITextFieldDelegate> autocompleteInputView = (id<UITextFieldDelegate>)textField.inputAccessoryView;
    [autocompleteInputView textField:textField shouldChangeCharactersInRange:NSMakeRange(0, 0) replacementString:@""];
}

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