I need to get the number of lines in a UILabel, so that I can move another UILabel to be at the bottom of the last line of text. I have done:
int lines = [cellDetailTextLabel.text sizeWithFont:cellDetailTextLabel.font constrainedToSize:cellDetailTextLabel.frame.size lineBreakMode:UILineBreakModeWordWrap].height /16;
but well it's not perfect because there are some cases when the UILabel is 3 lines long but the above code only returns 2, but this is not the case for all 3 lines of UILabels.