TTTAttributedLabel support a custom truncation string via truncationTokenString
as well as truncationTokenStringAttributes
.
However, I am wanting to go a bit further and set several string attributes on the truncation string, including different fonts and colours. This is what I am trying to achieve:
The arrow at the end can be achieved using a font icon, so I was thinking of the following string:
@"… Read More >"
'HORIZONTAL ELLIPSIS' (U+2026)
+ Read More
+ > character from a font
.
Unfortunately TTTAttributedLabel doesn't allow me to set the ranges for various attributes.
Does anyone have a good solution for this or will have have to do it manually and basically calculate the string as it can be drawn on two lines including the @"… Read More >"
string.
Thanks!