Greater than or equal constraint not working correctly

Viewed 4509

I have a UIView with 3 UIViews inside, I need every UIView to define it's one height depending of its contents and at the same time, the parent view should change its size depending of its children. But I'm having this issue:

Not working properly

I need the first UIView from the second column's height to always stick to its content and leave the remaining space in the end of the column. In other words, what I want is the second column's first UIView to shrink.

Here's my IB, the greater than or equal constraints are not working as I expected (I highlighted the relevant constraints):

Interface Builder

I've tried changing priorities but nothing's working, hope you can help me out, thanks.

EDIT: I forgot to show what's going on inside each UIView. The image might be present or not so if it's not I remove it and "pass" the UIView's height responsibility to the label, just that:

Inside each UIView

2 Answers
Related