-
Notifications
You must be signed in to change notification settings - Fork 1.7k
setAttributedText not reseting links #513
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I noticed that setText is able to take attributed strings. Using setText seems to resolve the problem of old links not being removed but |
Also see this note in
As you've noted, you should instead call |
I was already using attributed strings when i decided to drop in TTTAttributedLabel so I didn't see any warnings. I don't know how often setAttributedText is used but maybe it would be useful to add a deprecated warning on it. |
I just had the same issue, so yeah, a warning would be nice |
I seem to have the same issue as #274. With the current version, using the label inside a tableview cell setAttributedText seems to reset the styling of the text since the text doesn't have link stylings, but the range is still clickable with the old link.
I tried adding
inside setAttributedString and it seems to remove the old links, but when a correct link is set it becomes unclickable after one click or long press.
The text was updated successfully, but these errors were encountered: