TTTAttributedLabel : issue detecting links.

拥有回忆 提交于 2019-12-11 00:41:44

问题


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:


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



来源:https://stackoverflow.com/questions/22213219/tttattributedlabel-issue-detecting-links

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!