I want two buttons to have equal width and position themselves proportionally in all screens sizes from the top of the scree using autolayout?

后端 未结 6 1760
余生分开走
余生分开走 2021-01-27 01:43

Attaching the view i am planning to design. I would like to position the Buttons with respect to Superview and their Width and Height must increase proportionally to the Screen

6条回答
  •  有刺的猬
    2021-01-27 02:34

    You can try to use StackView feature, supported from Xcode7, take a look at this tutorial. StackView Sample

提交回复
热议问题