changing the font size according to each iPhone size

前端 未结 3 1694
无人共我
无人共我 2021-02-14 20:36

is there any way to changing/auto resizing the font size according to the different iPhone screen as when i change the font size, the font size applied to other phone size as we

相关标签:
3条回答
  • 2021-02-14 20:58

    I faced this issue few months ago. There is no way to do it on storyboard for now.

    You can do it by code by detect screen size or device type and set font size for each device. You can use this lib to do that

    https://github.com/sebyffffd/SDVersion

    0 讨论(0)
  • 2021-02-14 21:07

    Please use size classes to support different font size for different screens. Here is good tutorial about using size classes. adaptive-layout-tutorial

    0 讨论(0)
  • 2021-02-14 21:08

    I ran in to a similar issue. I suggest to use this library: https://github.com/hamiz-ahmed/SizeOptimizedLabel

    Specify the initial screen and font size. The font gets optimized automatically according to different screen sizes.

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