Closed yunchiri closed 11 years ago
I'm afraid that Core Text doesn't allow automatic word wrapping AND truncate tail (just as an example). Is it sufficient in your case to set lineBreakMode
to NSLineBreakByWordWrapping
?
Wow working find but Implicit conversion from ....' enum NSLineBreakMode' to different ...type 'CTLineBreakMode'...
So chang
CTLineBreakMode -> NSLineBreakMode ==> no waring Thank you MuscleRumble!
Ah yes, NSLineBreakMode
and CTLineBreakMode
basically have the same content. So a cast with CTLineBreakMode lineBreakMode = (CTLineBreakMode)self.lineBreakMode;
should be no problem. I'm glad it's working out for you! :)
only numberOfLine = 1 defined?
set numberOfLine = 0 doesn't work