1

When you use UILabel, you can set adjustsFontSizeToFitWidth along with the appropriate scale factor.

How can I get notified when it scales down? My use-case is that when one label down-sizes, I would like to do it for others around it for uniformity.

joslinm
  • 7,845
  • 6
  • 49
  • 72

1 Answers1

1

There is no observation mechanism, you'd need to calculate the size required to fit the text in the available space and use that size on all.

The alternative is to use autolayout to allow the text to wrap and then it doesn't need to scale down.

Wain
  • 118,658
  • 15
  • 128
  • 151