views:

78

answers:

0

Hi,

I have an UIView containing two UILabels, in order to display a string. The first UILabel has a fixed size, and if the string is too long and can't hold in this UILabel, I want to display the maximum characters I can in the first UILabel, and display the rest of the string in the second UILabel.

But to make this, I must know the exact part of the string displayed in the first UILabel, which is not easy because of the randomness of the string and the linebreaks.

So, is there a way to get just the text displayed in the first UILabel, without the truncated part of the string ?

Thank you in advance, and sorry for my bad english ;)