美文网首页
Masonry布局遇到的问题

Masonry布局遇到的问题

作者: 名为信念的旗帜 | 来源:发表于2017-11-07 11:46 被阅读0次
    2017-11-07 11:35:11.615 xxxxxxxxxx[20905:10828825] 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. 
    (
        "<MASLayoutConstraint:0x1003f9520 YZLoopView:0x1003dad50.top == HeaderView:0x1003c5220.top>",
        "<MASLayoutConstraint:0x108301130 YZLoopView:0x1003dad50.height == HeaderView:0x1003c5220.height * 0.472512>",
        "<MASLayoutConstraint:0x108301cd0 QuickEntryView:0x1003803c0.height == 210.864>",
        "<MASLayoutConstraint:0x108301e10 QuickEntryView:0x1003803c0.top == YZLoopView:0x1003dad50.bottom>",
        "<MASLayoutConstraint:0x108302970 TitleADView:0x100482540.top == QuickEntryView:0x1003803c0.bottom + 6.624>",
        "<MASLayoutConstraint:0x108302af0 TitleADView:0x100482540.height == 37.536>",
        "<MASLayoutConstraint:0x1004a6810 TitleADView:0x100482540.bottom == HeaderView:0x1003c5220.bottom - 6.624>",
        "<NSLayoutConstraint:0x1004a7f80 HeaderView:0x1003c5220.height == 458.16>"
    )
    
    Will attempt to recover by breaking constraint 
    <MASLayoutConstraint:0x108301cd0 QuickEntryView:0x1003803c0.height == 210.864>
    
    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.
    

    约束设置有问题的时候报这个提示,同时设置了高度和上下边距或者同时设置了宽度和左右边距

    相关文章

      网友评论

          本文标题:Masonry布局遇到的问题

          本文链接:https://www.haomeiwen.com/subject/xkndmxtx.html