在使用自动布局时,不断的报下面的错误:

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.相关推荐

  1. Unable to simultaneously satisfy constraints.这一问题

    工作了这么久一直没做什么记录之类的,想想还是要记录点什么就像上学时的笔记一样,有可能以后没什么大用处,但至少也是自己的经历,以后看了说不定会会心一笑呢. 闲话就到此为止了.最近在搭一个界面用到了自动布 ...

  2. 自动布局报错(两条连线冲突):Unable to simultaneously satisfy constraints

    这个报错有些长: Unable to simultaneously satisfy constraints.     Probably at least one of the constraints ...

  3. iOS 使用符号断点定位警告约束警告-[LayoutConstraints] Unable to simultaneously satisfy constraints

    约束的警告 使用符号断点定位警告 Symbol Module 模块筛选 Condition 触发条件 Ignore 触发开始次数 Action 触发活动 AppleScript 脚本 Capture ...

  4. ios SnapKit 约束Unable to simultaneously satisfy constraints 和UIView-Encapsulated-Layout-Height的警告

    最近在自定义UICollectionViewCell,cell里面UITextView约束如下: inputTextView.snp.makeConstraints { (make) inmake.l ...

  5. Unable to simultaneously satisfy constraints.

    开发版本  7.0 @property(nonatomic) BOOL translatesAutoresizingMaskIntoConstraints NS_AVAILABLE_IOS(6_0); ...

  6. Unable to simultaneously satisfy constraints

    [aSubView mas_makeConstraints:^(MASConstraintMaker *make) {         make.left.equalTo(self).offset(1 ...

  7. [LayoutConstraints] Unable to simultaneously satisfy constraints.

    [aSubView mas_makeConstraints:^(MASConstraintMaker *make) {make.left.equalTo(self).offset(10);make.r ...

  8. 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 进行布局的时候出现了类似的问 ...

  9. iOS模拟器运行报错Unable to install /xxx/build/ios/iphonesimulator/Runner.app

    前言 最近在做项目用模拟器运行,清理缓存后发现模拟器运行不起来了,报错如下: Unable to install /xxx/build/ios/iphonesimulator/Runner.app o ...

最新文章

  1. 字节跳动面试官:你离50w年薪就差答对了这个算法题!
  2. OpenCV2.4.13在VS2012环境的debug模式下的链接库输入配置的文件目录
  3. python二维表转一维表_Excel、Power BI及Python系列:使用Power BI转化一维表与二维表...
  4. Ubuntu用户设置文件说明
  5. python中sorted()函数的用法
  6. VC中新建的类不见了的解决方法
  7. [css] 请说说你对vh、vw的理解以及它们的运用场景是什么?
  8. 微软P2V工具之Disk2VHD
  9. 我只是一个程序代码员吗?
  10. 688561,安全新代码!
  11. OwinStartupAttribute
  12. 【嵌入式】---- 单片机常用单位
  13. 有感:一名大学毕业生的反思:轰动中国万言帖 最露骨大学生活
  14. 学习笔记-DQPSK系统的调制与解调
  15. 指数加权移动平均(Exponential Weighted Moving Average)
  16. apache2.2配置https协议(key文件、crt文件、csr文件生成方法)
  17. Error relaunching VirtualBox VM process:5错误解决
  18. 【C/C++】ifndef/define/endif的作用
  19. WPF基础系列二:控件简介
  20. m3u8中ts文件无损批量合并与转换方法

热门文章

  1. POJ3255 Roadblocks ——次短路
  2. 计算机外文翻译旅游网站,在线旅游外文文献翻译最新译文资料
  3. 数论概论 第五章 习题解答(上)(宋二娃的BLOG)
  4. 小鸟云安全组在哪里?怎么设置?
  5. Kafka的基本架构以及Replica多副本机制
  6. python编程工时计算_Python小项目——工时计算
  7. FI和HR集成自动记账-薪酬计提与发放过账-OBYE/OBYG/PE03/OH02
  8. 【面试准备之】HR面试时100个关键问题
  9. C++新特性——郭炜
  10. MicroPython开发实例之TurniBit开发板DIY自动窗帘模拟系统