Xcode IB: UIButton hidden but have still buttons space

后端 未结 6 1777
悲哀的现实
悲哀的现实 2021-02-15 18:22

I have the following issue in my iPhone app. I have 4 buttons in my IB also linked to my UIViewController (IBOutlet) When I for example hide the second

6条回答
  •  独厮守ぢ
    2021-02-15 18:47

    The modern preferred way of doing so is to use Stack Views. Great tutorial. Requires iOS 9.

    You'll find the icon of stack view in the Auto Layout toolbar at the bottom right of the storyboard canvas.

提交回复
热议问题