Scale text label by screen size

前端 未结 7 1320
长情又很酷
长情又很酷 2020-12-08 10:13

Is there a way to scale text so that it takes up close to the same screen real estate no matter what the device size is? I\'ve found that the text on an iPad sized device is

相关标签:
7条回答
  • 2020-12-08 10:56

    There is an aspect ratio constraint available. Add this to your label. Constraints to left and top margins for anchoring the label in place should silence the compiler warnings.

    As @VatsalManot mentioned, learn adaptive sizing for starters. Here's a good link:

    http://www.raywenderlich.com/83276/beginning-adaptive-layout-tutorial

    Hope this helps! :)

    0 讨论(0)
提交回复
热议问题