ios - 如何为我的视图解决自动布局约束
问题描述
以下是我的组件层次结构:
View Controller
View
- View
--Table View
---表格单元格
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 和宽度”。
有什么帮助吗?
解决方案
推荐阅读
- firebase - 允许其他特定域写入我们的 Callable Function
- javascript - 动态暂停执行用户提交的 Javascript 代码
- python-3.x - Pytest 环境全局变量
- python - 如何删除最后一个单词并打印剩余路径?
- kubernetes - kubernetes部署突然pod重启,原因?
- python - Python tkinter“全选”复选框和对齐
- .net-core - Azure Functions:现有连接被远程主机强行关闭。已经在使用静态 HttpClient
- json - Jsonpath:无法使用表达式获得所需的值
- reactjs - 使用 React/Typescript 在 test-utils 中扩展 React 测试库的自定义渲染的返回类型是什么?
- python - 每次在新笔记本上使用 vs 代码中的“基础”环境