YYKit icon indicating copy to clipboard operation
YYKit copied to clipboard

iOS 11 上 YYTextView 输入两个减号“-”, 会删掉前一个字

Open VirtualLion opened this issue 6 years ago • 2 comments

VirtualLion avatar Jun 12 '18 05:06 VirtualLion

I also met

vincentiss avatar Dec 11 '18 09:12 vincentiss

debug -[UIKeyboardImpl performKeyboardOutput:]

po $x2 <TIKeyboardOutput: 0x2838c4300; delete 2; insert —>

//// delete 2 会调用2次deleteBackward, 导致删除前一个字

///猜测与UITextInputDelegate 的

  • (void)setInputDelegate:(id<UITextInputDelegate>)inputDelegate { _inputDelegate = nil;// inputDelegate; }

这样就只会调用一次 但不知道会不会引起selectrange相关的问题

vincentiss avatar Dec 11 '18 11:12 vincentiss