2

I can show "... Read more" in UILabel using TTTAttributedLabel.

[lblContent setAttributedTruncationToken:str];

But I need to trigger another action when user tap on that text. I try to modify inside TTTAttributedLabel and it is not okay. How shall I do?

Khant Thu Linn
  • 5,905
  • 7
  • 52
  • 120

1 Answers1

0

Try this:

label.attributedTruncationToken = NSAttributedString(string: "...Read more", attributes: [NSFontAttributeName : label.font, NSForegroundColorAttributeName : UIColor.blueColor()])
Racil Hilan
  • 24,690
  • 13
  • 50
  • 55
F Matheus
  • 25
  • 1
  • 8