Masonry
Masonry copied to clipboard
A multiplier of 0 or a nil second item together with a location for the first attribute creates an illegal constraint of a location equal to a constant
New Issue Checklist
//source [self.tabBarController.view addSubview:self.pageAdView]; [self.pageAdView mas_makeConstraints:^(MASConstraintMaker *make) { make.edges.equalTo(self.tabBarController.view); }]; .............................................. Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'NSLayoutConstraint for <PageAdView: 0x10198c2b0; frame = (0 0; 0 0); clipsToBounds = YES; layer = <CALayer: 0x174425120>>: A multiplier of 0 or a nil second item together with a location for the first attribute creates an illegal constraint of a location equal to a constant. Location attributes must be specified in pairs.'
Issue Info
Info | Value |
---|---|
Platform | e.g. ios |
Platform Version | e.g. 10.2.1 |
Masonry Version | e.g. 1.0.1 |
Issue Description
⚠️ Replace this with the description of your issue. ⚠️
Hi,
Do you find a solution ? I got the same error ...
Thank
I have the same issue does anyone have a solution?
I guess the subviews layouts incorrect .
I met the same issue when use SnapKit 4.0 in a swift 4.0 Project , Xcode version :9.0, iOS 11
same issue here. any solution?
#185 I think can refer to ashare80's answer in this question。
Maybe you forgot to addsubview your label or something
check if parent view is nil self.pageAdView in the Q
it's right