I have a number of UILabels, all of which have adjustsFontSizeToFitWidth
set to true
. They are all different sizes, and the length of the text inside them will be different, so essentially the size of the text in each label can be arbitrary.
My goal is to have the text size be the same for all of them, so that after each label determines how small its text must be in order to fit, they all resize their text to the size of the smallest font size among the UILabels. This is the largest font size that is small enough for each label's text to fit.
I have also considered manually computing, for each label, the largest font size that will allow its text to fit, and then setting each label's font size to the smallest of those font sizes, but I don't know how to do this computation.