AttributedTextView icon indicating copy to clipboard operation
AttributedTextView copied to clipboard

why not make makeInteract supported in UILabel?

Open Jinkeycode opened this issue 7 years ago • 3 comments

why not make makeInteract supported in UILabel? Can we extend it? or you planing to do so?

Jinkeycode avatar Apr 04 '17 18:04 Jinkeycode

The makeInteract is using the UITextViewDelegate shouldInteractWith function. That delegate only works on a UITextView. I don't think there is similar standard functionality available for a UILabel. But then... why not change the label to a textview?

Op 4 apr. 2017 8:02 p.m. schreef "Jinkeycode" [email protected]:

why not make makeInteract supported in UILabel? Can we extend it? or you planing to do so?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/evermeer/AttributedTextView/issues/3, or mute the thread https://github.com/notifications/unsubscribe-auth/AAH_EtYDiPoWWImCw-sHI_s-DCKw-84iks5rsoV9gaJpZM4MzN-Z .

evermeer avatar Apr 04 '17 18:04 evermeer

@evermeer Because UITextView can not be automatically calculated height via storyboard in UITableview

Jinkeycode avatar Apr 08 '17 04:04 Jinkeycode

There might be a workaround for this. I will put this on my todo list.

Implementation details are available at: http://stackoverflow.com/questions/1256887/create-tap-able-links-in-the-nsattributedstring-of-a-uilabel

evermeer avatar Apr 10 '17 15:04 evermeer