I have two UILabels which I need to adjust the font size in order to properly fit the text (namely in smaller, older devices).
This would be easily solved with the .adjustsFontSizeToFitWidth
property but the thing is that, as both UILabels
are near one another and convey similar information, I want them to have the same font size (and adjustsFontSizeToFitWidth
will adjust them independently).
So, what I was thinking to do would be to, somehow (this is where I need help) calculate what would the font size need to be for both the labels and use the smallest on both.
Any ideas on how to do this? Both labels are multiline (2 lines) and they always have the same size.
Thanks in advance.