2

我可以使用 TTTAttributedLabel 在 UILabel 中显示“...阅读更多”。

[lblContent setAttributedTruncationToken:str];

但是当用户点击该文本时,我需要触发另一个动作。我尝试在 TTTAttributedLabel 内部进行修改,但不行。我该怎么办?

4

1 回答 1

0

尝试这个:

label.attributedTruncationToken = NSAttributedString(string: "...Read more", attributes: [NSFontAttributeName : label.font, NSForegroundColorAttributeName : UIColor.blueColor()])
于 2016-09-22T17:19:43.823 回答