【发布时间】:2020-02-29 10:37:57
【问题描述】:
以下是我的组件层次结构:
视图控制器
查看
- 查看
--表格视图
---表格单元格
1. 标题标签
2. 编辑按钮
3.删除按钮
我提供了如下约束:
标题标签:
Leading space to superview
trailing space to Edit button
bottom space to superview
top space to superview
编辑按钮
trailing space to remove button
leading space to title label
bottom space to superview
top space to superview
删除按钮
Trailing space to superview
width = 40
leading space to edit button
align center Y
height = 40
我收到标题标签、编辑和删除按钮的警告“需要 X 和宽度”。
有什么帮助吗?
【问题讨论】:
-
您确定该错误吗?我试图复制相同的内容并仅针对固定宽度约束收到警告。可以分享截图吗?
标签: ios objective-c ios-autolayout