How to align baselines of text in UILabels with different font sizes on iOS?

前端 未结 5 1872
野性不改
野性不改 2021-01-04 01:13

I need to align the baselines of text in UILabels. What I\'m currently doing is I\'m aligning the baselines of UILabels containing the text, and when the text font size in t

5条回答
  •  旧时难觅i
    2021-01-04 01:38

    With Autolayouts, its much more easier. Select the 2 labels you wish to align and goto the Align tool. Select "Bottom Edges"/ "Top Edges" / Baseline

提交回复
热议问题