检测用户何时点击NSTextAttachmentiOS 的最佳方法是什么?
我认为,其中一种方法是检查Carret的位置是否有NSAttachmentCharacter,但它似乎并不正确.
我也尝试过UITextViewDelegate方法:-(BOOL)textView:(UITextView *)textView shouldInteractWithTextAttachment:(NSTextAttachment *)textAttachment inRange:(NSRange)characterRange但是当它没有被调用时textView.editable=YES