AutoLayout----Unable to simultaneously satisfy constraints
2015-01-12 00:07
281 查看
顺便提一下
用AutoLayout有时候会出现
Unable to simultaneously satisfy constraints. 怎么查找到底是哪里的限制出问题了呢
我们来看看打印出来的提示
但是如果你的界面很多,就比较难知道在那个界面出问题了
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
打断点后哪里有冲突 程序就会crash
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
或者用这个category来debug
@interface UIView (UIConstraintBasedLayoutDebugging)
另外instrument里面有个CocoaLayout可以用来检测
用AutoLayout有时候会出现
Unable to simultaneously satisfy constraints. 怎么查找到底是哪里的限制出问题了呢
我们来看看打印出来的提示
但是如果你的界面很多,就比较难知道在那个界面出问题了
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
打断点后哪里有冲突 程序就会crash
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
或者用这个category来debug
@interface UIView (UIConstraintBasedLayoutDebugging)
另外instrument里面有个CocoaLayout可以用来检测
相关文章推荐
- UITableViewCell autolayout Unable to simultaneously satisfy constraints.
- iOS 自动布局报错:Unable to simultaneously satisfy constraints.
- Unable to simultaneously satisfy constraints
- Unable to simultaneously satisfy constraints
- iOS使用代码调整约束做动画效果时出现Unable to simultaneously satisfy constraints.
- Unable to simultaneously satisfy constraints.这一问题
- Unable to simultaneously satisfy constraints.
- Unable to simultaneously satisfy constraints.
- cordova for ios: Unable to simultaneously satisfy constraints.
- Unable to simultaneously satisfy constraints.
- Unable to simultaneously satisfy constraints.
- 自动布局 Autolayout 报错:Unable to simultaneously satisfy constraints.
- iOS 自动布局 Autolayout 报错:Unable to simultaneously satisfy constraints.
- Auto-Layout 的各种坑Unable to create description in descriptionForLayoutAttribute_layoutItem_coefficient. Something is nil'
- Auto-Layout 的各种坑Unable to create description in descriptionForLayoutAttribute_layoutItem_coefficient
- 10 Things You Need To Know About Cocoa Auto Layout
- iOS: How To Make AutoLayout Work On A ScrollView
- CocoaPods Unable to satisfy the following requirements解决方案
- Unable to satisfy the following requirements解决方案
- xcode新建工程时出现fatal: unable to auto-detect email address (got 'Rabstone@bogon.(none)')错误