I have a UILabel with attributed string in it. I want to attach click/tap event to one word in it. Is there a way to do it? The solution of using UIView instead of UILabel, as suggested at this question, does not fit to my case. I'm asking specifically about UILabel. Preferable not to use external libraries.
Asked
Active
Viewed 663 times
0
-
1Check out this: http://stackoverflow.com/questions/19332283/detecting-taps-on-attributed-text-in-a-uitextview-in-ios – Timur Bernikovich Dec 12 '16 at 16:08
-
a label doesnt expose its storage IIRC – Daij-Djan Dec 12 '16 at 16:17
1 Answers
1
it isnt publicly possible right now because the UILabel as opposed to a UITextView doesnt expose the internal text storage object
either switch to a textview or add a UIButton? ;)

Daij-Djan
- 49,552
- 17
- 113
- 135