iOS: UILabel dynamic height using sizeWithFont:constrainedToSize:lineBreakMode: not working
问题 I am trying to give my UILabel dynamic height so that my layout of other labels looks correct in both landscape and portrait. In portrait, my text wraps to the second line, in landscape it does not. So, when using sizeWithFont:constrainedToSize:lineBreakMode: I get the same height when rotating both ways, when I had assumed it would be a larger number when the text was 2 lines. How can I get the height of my UILabel when it has two lines of text or more (portrait) and get the new height which