ios - NSLineBreakByWordWrapping on First Line but NSLineBreakByTruncatingTail For Second Line? -
Is this possible?
I have to put a two line label in the first row, I want to wrap it on words. But for the second line, if the text is too long, I want to sort it by tail and later add ellipses Any ideas on the simplest way to do this? In my comment, I was wrong about the line break mode. If you only pull a UILB, then the default line break is the trunk tail, which is what you want. If you make the label twice as high, and set the lines to 2, then the text will wrap up, and if you are too long for the second line, then this elipisis will show that there is no need to fancy anything. "..." .
Comments
Post a Comment