ACEAutocompleteBar icon indicating copy to clipboard operation
ACEAutocompleteBar copied to clipboard

minimumCharactersToTrigger

Open FreudGit opened this issue 11 years ago • 2 comments

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 avatar Apr 28 '14 15:04 FreudGit

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)

FreudGit avatar Apr 28 '14 16:04 FreudGit

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:@""];
}

0xced avatar Feb 06 '18 21:02 0xced