filter the candidate while inputing
This commit is contained in:
@@ -227,6 +227,8 @@ - (BOOL)textViewShouldEndEditing:(UITextView *)textView {
|
||||
}
|
||||
|
||||
- (void)textViewDidChange:(UITextView *)textView {
|
||||
if (textView.markedTextRange) return;
|
||||
|
||||
if (self.maxLength) {
|
||||
UITextRange *selectedRange = [textView markedTextRange];
|
||||
UITextPosition *pos = [textView positionFromPosition:selectedRange.start offset:0];
|
||||
|
Reference in New Issue
Block a user