tobihagemann / THLabel

UILabel subclass, which additionally allows shadow blur, inner shadow, stroke text and fill gradient.
https://tobiha.de
Other
668 stars 110 forks source link

It doesn't work with 2 lines text #13

Closed jairobjunior closed 10 years ago

tobihagemann commented 10 years ago

Have you tried setting lineBreakMode to NSLineBreakByWordWrapping? The issue here is that numberOfLines is being ignored, because Core Text doesn't support it natively.

jairobjunior commented 10 years ago

Yeah, I just tested here and it works using WordWrapping. I just need to programming the same behavior of TruncanteTail("..."). Thanks.