In my app I put a UILabel
and inside I put a text, but apparently the text is longer than it can fit, and I would like to know if you can detect when a text is too long, so you can download the size of the font using code with while
or something like that.
Something like that is what I'm looking for.
while label.textoMuyLargo {
label.sizeFont = label.sizeFont -1
}
How do you detect when a text is too long for a UI Label?