TTTAttributedLabel : issue detecting links.

2019-07-15 13:15发布

I've been having some issues while using TTTAttributedLabel. Sometimes a given URL doesn't get coloured as a link nor does it react to touch. However, this is solved by scrolling down and up, so by making the Cell view re-draw. I've looking at the issues in the project's github, but the ones that seemed related were already closed.

1条回答
虎瘦雄心在
2楼-- · 2019-07-15 13:53

Well, the fix was to move the .enabledTextCheckingTypes = NSTextCheckingTypeLink; to the awakeFromNib method the custom UITableViewCell.

查看更多
登录 后发表回答