今天设置UITextView的字数限制 在UITextViewDelegate的 - (void)textViewDidChange:(UITextView *)textView回调方法里操作报错
_NSLayoutTreeLineFragmentRectForGlyphAtIndex invalid glyph index 141
libc++abi.dylib: terminate_handler unexpectedly threw an exception
错误的做法:
- (void)textViewDidChange:(UITextView