Unable to simultaneously satisfy constraints.
开发版本 7.0
@property(nonatomic) BOOL translatesAutoresizingMaskIntoConstraints NS_AVAILABLE_IOS(6_0); // Default YES
此属性 6.0 版本
错误提示:
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. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
("<NSAutoresizingMaskLayoutConstraint:0x7ffd30d86570 h=--& v=--& H:[UIView:0x7ffd30f33d50(640)]>","<NSLayoutConstraint:0x7ffd33065d20 H:[UIImageView:0x7ffd30f341c0]-(0)-| (Names: '|':UIView:0x7ffd30f34030 )>","<NSLayoutConstraint:0x7ffd30eaa760 H:|-(0)-[UIImageView:0x7ffd30f341c0] (Names: '|':UIView:0x7ffd30f34030 )>","<NSLayoutConstraint:0x7ffd330bf740 UIView:0x7ffd30f33d50.width == 2*UIImageView:0x7ffd30f341c0.width>","<NSLayoutConstraint:0x7ffd30d944d0 'UIView-Encapsulated-Layout-Width' H:[UIView:0x7ffd30f34030(375)]>"
)Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x7ffd33065d20 H:[UIImageView:0x7ffd30f341c0]-(0)-| (Names: '|':UIView:0x7ffd30f34030 )>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.
解决办法:
出错的View . translatesAutoresizingMaskIntoConstraints = NO ;即可解决
无意之中发现只要设置xib 中的size 为任意的iphone 尺寸也能解决上面的问题, 不能死inferred!!!
转载于:https://www.cnblogs.com/fleas/p/5717760.html
Unable to simultaneously satisfy constraints.相关推荐
- 自动布局报错(两条连线冲突):Unable to simultaneously satisfy constraints
这个报错有些长: Unable to simultaneously satisfy constraints. Probably at least one of the constraints ...
- Unable to simultaneously satisfy constraints
[aSubView mas_makeConstraints:^(MASConstraintMaker *make) { make.left.equalTo(self).offset(1 ...
- [LayoutConstraints] Unable to simultaneously satisfy constraints.
[aSubView mas_makeConstraints:^(MASConstraintMaker *make) {make.left.equalTo(self).offset(10);make.r ...
- iOS 使用符号断点定位警告约束警告-[LayoutConstraints] Unable to simultaneously satisfy constraints
约束的警告 使用符号断点定位警告 Symbol Module 模块筛选 Condition 触发条件 Ignore 触发开始次数 Action 触发活动 AppleScript 脚本 Capture ...
- ios SnapKit 约束Unable to simultaneously satisfy constraints 和UIView-Encapsulated-Layout-Height的警告
最近在自定义UICollectionViewCell,cell里面UITextView约束如下: inputTextView.snp.makeConstraints { (make) inmake.l ...
- Unable to simultaneously satisfy constraints.这一问题
工作了这么久一直没做什么记录之类的,想想还是要记录点什么就像上学时的笔记一样,有可能以后没什么大用处,但至少也是自己的经历,以后看了说不定会会心一笑呢. 闲话就到此为止了.最近在搭一个界面用到了自动布 ...
- masonry Unable to simultaneously satisfy constraints. Probably at least one of the c
Unable to simultaneously satisfy constraints. Probably at least one of the 在使用masonry 进行布局的时候出现了类似的问 ...
- iOS 自动布局 Autolayout 报错:Unable to simultaneously satisfy constraints.
在使用自动布局时,不断的报下面的错误: Unable to simultaneously satisfy constraints. Probably at least one of the const ...
- iOS 自动布局报错:Unable to simultaneously satisfy constraints.
这种错误,一般就两个原因: 1,约束设置错误,或者约束设置重复,这一种把约束全部删除掉再重新添加约束. 2,忘记设置控件的:setTranslatesAutoresizingMaskIntoConst ...
最新文章
- 陷阱~关于引用类型,请不要模棱两可!
- android 汉字转字节,android实现汉字转拼音功能 带多音字识别
- 08 域控 架构主机 转移_论无服务器架构的特征
- linux 怎么设置静态ip,如何在Linux中设置静态IP地址和配置网络
- tomcat(19)Manager应用程序的servlet类
- Go之Channel
- 室内高品质海报框架模型模板(Photoshop PSD)
- 今天可免费用VR观看第51届超级碗大赛直播
- [C/C++11语法]_[0基础]_[lamba 表达式介绍]
- 2020 年你读了哪些觉得比较好的计算机书籍?
- POI excel 单元格换行
- 2016年中考计算机考试模拟试题,2016年计算机三级考试模拟试题(含答案)
- linux中利用k键杀死进程号,linux下杀死进程的若干方法
- 轻薄旗舰投影两大阵营大眼橙X7D Pro和极米Z7X,谁才是真正的高性价比之选?
- 支付宝开发流程及注意事项
- LabVIEW——波形图总结
- Maya快捷键、拆UV、上材质
- 奇瑞新能源的小车为何备受市场青睐?鲍思语这样解释
- 内存错误检测工具——kfence工作原理分析
- 会计 复式记账 财务会计 系统设计 数据库建模(待翻译)
热门文章
- 数据库原理上机实验内容报告代码
- mongodb查询值不为空_MongoDB使用规范(上)
- Windows Server 2016离线安装.NET Framework 3.5
- LeetCode每日训练2—有序矩阵中第K小的元素(7.2)
- LeetCode--Add Two Numbers
- Scikit-Learn 机器学习笔记 -- 决策树
- python杂记-RSA加解密实现(2)
- 端计算(2)-android studio 的sdk,avd,grade及其它缓存配置
- python3精要(37)-wxPython(3)-安装
- 嵌入式笔录(3)-电容,频率与幅度基础