iPhone how to identify whether UILabels will show truncated text?
问题 I need to show a more button on my UILabel when UILineBreakModeTailTruncation starts. ie whenever the " ... " appears, I need to display my more button with some actions. What I am doing is float textWidth = [myString sizeWithFont:myLabel.font].width; if (textWidth > myLabel.frame.size.width) { [moreButton setHidden:FALSE]; } else { [moreButton setHidden:TRUE]; } But my problem is, when the number of lines of the label is set to 2, more button is shown whenever the first line of the label is