美文网首页Swift Error
布局问题:Assertion failure in -[MASV

布局问题:Assertion failure in -[MASV

作者: NoExcuse | 来源:发表于2015-12-10 19:45 被阅读7306次

] *** Assertion failure in -[MASViewConstraint addConstraintWithLayoutAttribute:], /ss/Pods/Masonry/Masonry/MASViewConstraint.m:207

selectLabel.mas_makeConstraints { (make) -> Void in           
        make.centerY.equalTo()(selectBtn)    
        make.left.equalTo()
(selectLabel.mas_right).width().offset()(30)   
         make.right.equalTo()(self.kSelectView)

        }

  make.left.equalTo()(selectLabel.mas_right).with().offset()(30)

经常把with()写成width().
一般会crash掉,看到是布局问题,左边,线程中调试。

相关文章

网友评论

    本文标题:布局问题:Assertion failure in -[MASV

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