3

UILabel has a property 'Autoshrink' in the Attributes Inspector, where a Minimum Font Scale can be selected, the equivalent in code being UILabel's minimumScaleFactor property.

Is there a way in code to determine the following?

  1. if a label has been scaled
  2. what it has been scaled to
Craig Grummitt
  • 2,945
  • 1
  • 22
  • 34
  • What are you trying to achieve? http://meta.stackexchange.com/a/66378/131139 – jtbandes Sep 07 '15 at 21:15
  • 1
    I'm trying to ensure that two UILabels are the same font size. I've attempted other solutions listed in StackOverflow without luck(eg. http://stackoverflow.com/a/20829315/3220708) and seem to me to be a little OTT. The simplest solution seems to me to read the UILabel scale in code(and it would also be surprising to me if this is not possible), so this is where I'm starting. – Craig Grummitt Sep 08 '15 at 14:39

0 Answers0