I have an NSTextAttachment
with an image in a UILabel
and I would like to perform a custom behaviour when clicking on this attachment.
UITextViewDelegate
provides an handy method
textView:shouldInteractWithTextAttachment:inRange:
But it can only be used if I'm using UITextView
.
Is there any solution if Im using UILabel
?
Thanks!