YYKit
YYKit copied to clipboard
iOS 11 上 YYTextView 输入两个减号“-”, 会删掉前一个字
I also met
debug -[UIKeyboardImpl performKeyboardOutput:]
po $x2 <TIKeyboardOutput: 0x2838c4300; delete 2; insert —>
//// delete 2 会调用2次deleteBackward, 导致删除前一个字
///猜测与UITextInputDelegate 的
- (void)setInputDelegate:(id<UITextInputDelegate>)inputDelegate { _inputDelegate = nil;// inputDelegate; }
这样就只会调用一次 但不知道会不会引起selectrange相关的问题