reason: 'couldn't find a common superview for <UIView: 0x7ffc2e303270; frame = (0 0; 0 0); layer = <CALayer: 0x7ffc2e3033e0>> and <JTCalendarContentView: 0x7ffc2d81f200; baseClass = UIScrollView; frame = (0 64; 375 72); clipsToBounds = YES; autoresize = RM+BM; gestureRecognizers = <NSArray: 0x7ffc2be760c0>; layer = <CALayer: 0x7ffc2bec31f0>; contentOffset: {750, 0}; contentSize: {1875, 72}>'
拉约束的时候,各个控件(有关系的)用的不是一个参照物。我出现这种情况的原因是因为一部分控件用的XIB拉的约束,一部分用的masonry,一个视图用代码写的附在XIB的控件上出现了问题,解决办法,都用XIB,或者代码,或者你找到一个参照物
网友评论