iOS equivalent for Android View.GONE visibility mode

前端 未结 13 747
臣服心动
臣服心动 2020-12-12 19:22

I\'m developing an app for iOS and I\'m using the Storyboard with AutoLayout ON. One of my view controllers has a set of 4 buttons, and in certain circumstances i would like

相关标签:
13条回答
  • 2020-12-12 20:16

    What you can do is to group your views under a stack view. Then when you hide a particular view, the remaining views will be shifted automatically to fill the space.

    You may want to check out the Apple Documentation on Stack Views: https://developer.apple.com/reference/uikit/uistackview

    or online tutorials such as: https://www.appcoda.com/stack-views-intro/

    0 讨论(0)
提交回复
热议问题