Always getting the same height using sizeWithFont:minFontSize:actualFontSize:forWidth:lineBreakMode:
问题 The CGSize returned by sizeWithFont:minFontSize:actualFontSize:forWidth:lineBreakMode: contains always the same height. Why is that, and is there a way around this? I want to align a string vertically and it may not be truncated, unless it can't fit on a single line using the minimum font size. So I try to use this method to get the line height but it always returns 57px no matter what the actualFontSize is. Any ideas? 回答1: I believe you are misunderstanding the actualFontSize parameter. This