optonaut / ActiveLabel.swift

UILabel drop-in replacement supporting Hashtags (#), Mentions (@) and URLs (http://) written in Swift
MIT License
4.47k stars 686 forks source link

Working with UIScrollView #16

Closed jdriselvato closed 8 years ago

jdriselvato commented 8 years ago

I'm having issues getting this working with UIScrollViews. UIScrollView doesn't seem to allow for interaction with the linking.

jdriselvato commented 8 years ago

My issue seems to be a problem with UIViews with ActiveLabels on it inside a UIScrollView. Not a problem with this specifically.

schickling commented 8 years ago

Glad to hear this could be resolved.

bogdanh commented 7 years ago

Hi @jdriselvato,

I know it's kind of old but how you managed to fix the problem with ActiveLabels inside a UIScrollView? I have the same problem now. It is working well when the ActiveLabel is not within an UIScrollView but not when it's within. I tested with other UILabel elements and the tap is working.

Any answer will be much appreciated. Thank you.

croossin commented 7 years ago

@jdriselvato or @bogdanh Were you able to find a solution to this problem?

lindlau commented 6 years ago

same problem here

jdriselvato commented 6 years ago

If I remember correctly, what I ended up doing was subclassing a UITableViewCell instead of using scroll view and views to fix my problem. Sorry, I know that's not what you want to hear but it worked out for the project I was working on (2 years ago).