Strange UIView-Encapsulated-Layout-Height Error

I usually remove this warning by lowering the priority of the constraint that AutoLayout is trying to break. So if it says:

Will attempt to recover by breaking constraint 
<NSLayoutConstraint:0x7fd7c2ecb520 V:[UIView:0x7fd7c2ecd0e0(300)]>

Go ahead and lower that one’s priority to 999.

That should work.

Cheers.

Leave a Comment

tech