以下是我的组件层次结构:
视图控制器
查看
-查看
-表格视图
---表格单元格
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和宽度”。
有帮助吗?