tobihagemann / THLabel

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

numberOfLines property is broken #44

Closed wujianbotju closed 6 years ago

wujianbotju commented 6 years ago

When I assign 0 to numberOfLines, THLabel doesn't work as expected.

tobihagemann commented 6 years ago

Mind the notes in the README:

However THLabel doesn't respect the numberOfLines property, because Core Text doesn't support it natively. If you would like to have multiple lines, set lineBreakMode to NSLineBreakByWordWrapping.