标签 ios swift autolayout uistackview
UIStackView 很棒,我喜欢等间距分布。 但是如何动态地在元素之外实现相同的空间呢? 在我的例子中,所有元素都将具有相同的比例 1:1
最佳答案
您可以使用 Storyboard添加相等间距,如下所示:
来源: https://stackoverflow.com/a/32862693/3393964
关于ios - 界面堆栈 View ;元素之间和外部元素的间距相等,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43045423/
相关文章:
ios - 使用 openParentApplication : and handleWatchKitExtensionRequest: to send location updates to Watch App not working
ios - 在 tableview (iOS) 中显示来自 parse.com 的数组
ios - ipad模拟器上的UIImagePicker不是全宽
ios - 垂直分布两个水平按钮行
swift autoLayout 覆盖 CGRectMake
ios - Xcode - 如何修复 'NSUnknownKeyException' ,原因 : … this class is not key value coding-compliant for the key X"error?
ios - 抑制 Swift 编译器警告
ios - CollectionViewDelegate 方法在 Swift 3 迁移后不会被调用
ios - 使用 init 作为闭包
iOS:自动布局与 autoresizingMask - 调整整个 View 的大小以填充?