ios - 标签网格 - 如何在 Xcode 中设置约束?

标签 ios xcode interface-builder

我正在尝试为我的应用构建用户界面,但我必须使用 6x3 标签网格。我把它们放在 View 中。它看起来像这样:

Label  Label  Label

Label  Label  Label

Label  Label  Label

Label  Label  Label

Label  Label  Label

Label  Label  Label

当我尝试自动添加缺少的约束时,它看起来很糟糕。

我尝试使用很多设置,但我还没有得到合适的外观。你能帮我吗?

最佳答案

6x3 标签网格 ? Collection View 呢?你没有遇到 1000000 个约束的问题?你可以添加自定义 collectionView 对象的大小/颜色/数量......

关于ios - 标签网格 - 如何在 Xcode 中设置约束?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32097106/

相关文章:

ios - 如何跟踪随日期变化的数据?

ios - CBCentralManager scanForPeripheralsWithServices :nil is not returning any results

ios - 如何针对旧版本的 iOS SDK 构建 Xamarin

objective-c - 为什么我的 NSBezierPath 没有显示?

ios - 无法在 Interface Builder 中更改 TableView 的大小

iphone - 在 Interface Builder 中使用自定义字体定位 UILabel

ios - 上传大视频时网络连接丢失

ios - AVPlayerItem canStepBackward/canPlayReverse 条件

ios - 如何旋转 "func renderer(SCNSceneRenderer, nodeFor: ARAnchor) -> SCNNode?"中的 SCNNode

ios - 在 Xcode 中运行 2 个自定义 shell 脚本中的 1 个卡住了 2 分钟