Set matching font sizes on UILabels in a UITableViewCell when one Label adjustFontSizeToFitWidth
问题 I have two UILabel in a custom tableViewCell . One label has width constraints and is set to adjustFontSizeToFitWidth on smaller screens e.g. 5S. How can I get the other UILabel to match the font size of the first label, when it does not have particular width constraints? It seems sizeWithFont:minFontSize:actualFontSize:forWidth:lineBreakMode: was deprecated in iOS7, so what is the Swift solution? This answer When do adjustsFontSizeToFitWidth or boundingRectWithSize change the context