Why do constraints work like this ?

In this case, I defined constraints (spacing between objects) and applied to:

- hR

- wC hR

with the same priority of 1000


Looking back, I thought it was redundant as wC hR is obviously in the hR case.


But if I disable the wC hR constraint, I get a red warning in IB


Does that mean that constraint manager consider only the most restirctive constraint ? That is a AND not a OR between constraints ?


What happens when I add

- wR hR


do I need to define another constraint in such a case ?

Accepted Reply

After some more thoughts.


Layout applies all constraints: so it is an AND ; writing

- hR

- wC hR

is just equivalent to

- wC hR


I close the thread on this.

Replies

After some more thoughts.


Layout applies all constraints: so it is an AND ; writing

- hR

- wC hR

is just equivalent to

- wC hR


I close the thread on this.