Let say I have 3 views
A|----------|
| B|-----| |
| | C ? | |
| |_____| |
|__________|
If I have a constraint involving view B and view C.
The documentation suggests adding to view C would be illegal:
The constraint must involve only views that are within scope of the receiving view. Specifically, any views involved must be either the receiving view itself, or a subview of the receiving view. Constraints that are added to a view are said to be held by that view. The coordinate system used when evaluating the constraint is the coordinate system of the view that holds the constraint.
- Does it matter if I add it to view A or view B?
- Are there any implications of adding to one superview instead of the other?
- Are there any convenience implications? (e.g. its easier to manage if all constraints are in one place?)