i have multiline label, it frame changes according to text length properly. when i get width of label it counts whole label width while I just want first line width. I am using this code to get each line.
NSArray *linesArray = [self getLinesArrayOfStringInLabel:label];
when text is too long it works properly but when text is short is breaks line's last word in second line and in label it display single line.
and array is
linesArray = (
" this is multiline label. I want just first ",
"line."
)
whats going wrong here??