无法同时满足约束。错误信息

时间:2016-11-11 15:17:06

标签: xcode constraints

有人可以帮我调试此错误消息代码吗?我是Xcode开发的新手。我查看了Apple文档中的here,但仍然花了一些时间后,我无法找出导致问题的原因。我只有一个集合视图。我还没有在Collection View中配置任何元素。

[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. 
    (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints) 
(
    "<NSAutoresizingMaskLayoutConstraint:0x6080000980b0 h=--& v=--& UIView:0x7ff8f1c3f840.width == 148   (active)>",
    "<NSAutoresizingMaskLayoutConstraint:0x608000098880 h=--& v=--& UIView:0x7ff8f1c3f840.height == 79   (active)>",
    "<NSLayoutConstraint:0x6080000907c0 UIImageView:0x7ff8f1c3f9e0.width == 1.875*UIImageView:0x7ff8f1c3f9e0.height   (active)>",
    "<NSLayoutConstraint:0x608000093420 V:[UIImageView:0x7ff8f1c3f9e0]-(0)-|   (active, names: '|':UIView:0x7ff8f1c3f840 )>",
    "<NSLayoutConstraint:0x608000092e30 V:|-(0)-[UIImageView:0x7ff8f1c3f9e0]   (active, names: '|':UIView:0x7ff8f1c3f840 )>",
    "<NSLayoutConstraint:0x608000095db0 H:[UIImageView:0x7ff8f1c3f9e0]-(0)-|   (active, names: '|':UIView:0x7ff8f1c3f840 )>",
    "<NSLayoutConstraint:0x608000098100 H:|-(0)-[UIImageView:0x7ff8f1c3f9e0]   (active, names: '|':UIView:0x7ff8f1c3f840 )>"

我的故事板图片 enter image description here

我正在使用Xcode 8

0 个答案:

没有答案