autolayout异常解决
来源:互联网 发布:海岛骑兵医师升级数据 编辑:程序博客网 时间:2024/06/06 10:05
[LayoutConstraints] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want.
Try this:
(1) look at each constraint and try to figure out which you don't expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(
"<NSLayoutConstraint:0x17068b630 UIButton:0x153b67fe0.right == UITableViewCellContentView:0x153b682a0.right - 2 (active)>",
"<NSLayoutConstraint:0x17068b3b0 H:|-(372)-[UIButton:0x153b67fe0](LTR) (active, names: '|':UITableViewCellContentView:0x153b682a0 )>",
"<NSLayoutConstraint:0x17068bf90 'UIView-Encapsulated-Layout-Width' UITableViewCellContentView:0x153b682a0.width == 320 (active)>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x17068b630 UIButton:0x153b67fe0.right == UITableViewCellContentView:0x153b682a0.right - 2 (active)>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
特别注意:
(1)打symbolic breakpoint
(2)将UIViewAlertForUnsatisfiableConstraints放入位置
这样能找到异常的准确的位置
- autolayout异常解决
- UITableViewCell使用Autolayout布局的解决过程
- Autolayout屏幕适配库导入后报错解决
- Autolayout屏幕适配库导入后报错解决
- Autolayout
- autolayout
- AutoLayout
- autolayout
- AutoLayout
- autolayout
- AutoLayout
- autolayout
- autolayout
- autolayout
- AutoLayout
- Autolayout
- AutoLayout
- Autolayout
- composer 安装yii2框架
- 504. Base 7
- 关于ASP.NET 发送电子邮件
- 原型模式
- 剑指offer——反转链表
- autolayout异常解决
- cURL请求接口出现name lookup timed out
- JVM内存分几种?
- Fibonacci 快速幂矩阵
- 安卓获取系统当前时间
- presentations.open 操作ppt时报错
- 排列组合 (组合数 思维题)
- 干货 | Android 8.0正式版发布:Android O 新特性和行为变更总结
- 阿里云服务器错误:500-内部服务器错误,500.21