-1
UITextView
에는 이미지 (문자 :)와 문자열이 혼합되어 있습니다. UITextView
선택할 수 없습니다, 그래서 사용할 수 있습니다UITextView에서 NSTextAttachment 삭제/제거
- (BOOL)textView:(UITextView *)textView shouldInteractWithTextAttachment:(NSTextAttachment *)textAttachment inRange:(NSRange)characterRange
어떻게 방법에 textAttachment
을 삭제합니까?
'NSMutableAttributedString * mutableAttr = [[텍스트 뷰 attributedText] mutableCopy]; [mutableAttr replaceCharactersInRange : range withString : @ ""]]; [textView setAttributedText : mutableAttr]; – Larme
굉장해! 솔루션으로 게시하고 받아 들일 것입니다. – Gukki5