iOS 自动布局 Autolayout 报错:Unable to simultaneously satisfy constraints.
在使用自动布局时,不断的报下面的错误:
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)
(
"<NSLayoutConstraint:0x8c67c10 V:[UIButton:0x8c67320]-(2)-| (Names: '|':UIView:0x8c65ad0 )>",
"<NSAutoresizingMaskLayoutConstraint:0x8e166b0 h=--& v=--& UIButton:0x8c67320.midY ==>",
"<NSAutoresizingMaskLayoutConstraint:0x8e166e0 h=--& v=--& V:[UIButton:0x8c67320(0)]>",
"<NSAutoresizingMaskLayoutConstraint:0x8e130d0 h=-&- v=-&- UIView:0x8c65ad0.height == PicCollectionViewCell:0x8c65a00.height>",
"<NSLayoutConstraint:0x8e13710 'UIView-Encapsulated-Layout-Height' V:[PicCollectionViewCell:0x8c65a00(100)]>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x8c67c10 V:[UIButton:0x8c67320]-(2)-| (Names: '|':UIView:0x8c65ad0 )>
Break on objc_exception_throw to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
这种错误,一般就两个原因:
1,约束设置错误,或者约束设置重复,但是数据却不一致。
2,忘记设置控件的:setTranslatesAutoresizingMaskIntoConstraints 等于NO 。
iOS 自动布局 Autolayout 报错:Unable to simultaneously satisfy constraints.相关推荐
- Unable to simultaneously satisfy constraints.这一问题
工作了这么久一直没做什么记录之类的,想想还是要记录点什么就像上学时的笔记一样,有可能以后没什么大用处,但至少也是自己的经历,以后看了说不定会会心一笑呢. 闲话就到此为止了.最近在搭一个界面用到了自动布 ...
- 自动布局报错(两条连线冲突):Unable to simultaneously satisfy constraints
这个报错有些长: Unable to simultaneously satisfy constraints. Probably at least one of the constraints ...
- 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.
开发版本 7.0 @property(nonatomic) BOOL translatesAutoresizingMaskIntoConstraints NS_AVAILABLE_IOS(6_0); ...
- 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 ...
- 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模拟器运行报错Unable to install /xxx/build/ios/iphonesimulator/Runner.app
前言 最近在做项目用模拟器运行,清理缓存后发现模拟器运行不起来了,报错如下: Unable to install /xxx/build/ios/iphonesimulator/Runner.app o ...
最新文章
- 字节跳动面试官:你离50w年薪就差答对了这个算法题!
- OpenCV2.4.13在VS2012环境的debug模式下的链接库输入配置的文件目录
- python二维表转一维表_Excel、Power BI及Python系列:使用Power BI转化一维表与二维表...
- Ubuntu用户设置文件说明
- python中sorted()函数的用法
- VC中新建的类不见了的解决方法
- [css] 请说说你对vh、vw的理解以及它们的运用场景是什么?
- 微软P2V工具之Disk2VHD
- 我只是一个程序代码员吗?
- 688561,安全新代码!
- OwinStartupAttribute
- 【嵌入式】---- 单片机常用单位
- 有感:一名大学毕业生的反思:轰动中国万言帖 最露骨大学生活
- 学习笔记-DQPSK系统的调制与解调
- 指数加权移动平均(Exponential Weighted Moving Average)
- apache2.2配置https协议(key文件、crt文件、csr文件生成方法)
- Error relaunching VirtualBox VM process:5错误解决
- 【C/C++】ifndef/define/endif的作用
- WPF基础系列二:控件简介
- m3u8中ts文件无损批量合并与转换方法
热门文章
- POJ3255 Roadblocks ——次短路
- 计算机外文翻译旅游网站,在线旅游外文文献翻译最新译文资料
- 数论概论 第五章 习题解答(上)(宋二娃的BLOG)
- 小鸟云安全组在哪里?怎么设置?
- Kafka的基本架构以及Replica多副本机制
- python编程工时计算_Python小项目——工时计算
- FI和HR集成自动记账-薪酬计提与发放过账-OBYE/OBYG/PE03/OH02
- 【面试准备之】HR面试时100个关键问题
- C++新特性——郭炜
- MicroPython开发实例之TurniBit开发板DIY自动窗帘模拟系统