iOS - Placing two label together in centre of their super view

前端 未结 2 1144
一整个雨季
一整个雨季 2021-01-23 03:21

I have two label, L1 and L2 of variable and nonidentical length. I want to place these two label using constraints in Xcode. If possible i don\'t want to manipulate constraints

2条回答
  •  Happy的楠姐
    2021-01-23 04:02

    is your L1 and L2's width is fixed value or uncertain value ?

    if the width is fixed, you can used Masonry to realization effect。

提交回复
热议问题