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

The label cannot multiple lines #39

Closed daicaga closed 8 years ago

daicaga commented 8 years ago

I created a label and set line number to 0. But cannot show it as multiple lines.

Could you please help us to implement it?

tobihagemann commented 8 years ago

Hey there! I've added it in the notes, you probably missed that: https://github.com/tobihagemann/THLabel#notes

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.

Hope this helps! :)

daicaga commented 8 years ago

Thanks, I see