Masonry 约束冲突

问题简述:检查约束没问题,但是出现约束冲突

[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)
(
"",
"",
""
)

Will attempt to recover by breaking constraint

重点: ""

父视图 width == 0 ?

解决:view 初始化之前 [self.view layoutIfNeeded];

你可能感兴趣的:(Masonry 约束冲突)