Excluir / remover NSTextAttachment do UITextView
eu tenho umUITextView
que terá uma mistura de imagens (comoNSTextAttachment
) e cadeias de caracteres. oUITextView
NÃO é selecionável, então eu posso usar:
- (BOOL)textView:(UITextView *)textView shouldInteractWithTextAttachment:(NSTextAttachment *)textAttachment inRange:(NSRange)characterRange
Como faço para excluir otextAttachment
no método?