How to divide UIView in to three even sized subviews horizontally in XCODE?

前端 未结 5 1495
你的背包
你的背包 2021-01-13 23:51

I Have to divide a UIView horizontally into three even sized subviews using Xcode. I tried to use constraints. I got the following result.

5条回答
  •  深忆病人
    2021-01-14 00:49

    Set the constraints of Equal width by selecting all the three Views and provide the constraint of horizontal spacing of 1 point. It will divide the views into 3 equal width views.

提交回复
热议问题