I have UIViewControlleron my storyboard that has 2 sub-items side by side horizontally. I added constraints to fix the leading and trailing edges to the constant (20 points) and another constraint to keep the width equal. If I assume the following, it should be possible to calculate how wide the width of each peep should be:
- Mobility does not overlap
- no other views (horizontal, at least)
- known screen width (supervisor)
However, Xcode gives me a warning that my views are horizontally ambiguous. I guess this means that Xcode does not make one of these assumptions, but who is it? And is there a way to instruct Xcode to make this assumption?
EDIT: Okay, played a little with him and got a warning to leave, but that doesn't seem to make the first assumption - he just sets the width of each subview to superview.width - 40and happily bury one view under another. So, the question is how to stop them overlap?
EDIT 2: Well, my actual screen is much more complicated than my simple example. Here is what I got:

, 4 , . , , subview.frame.size.width = superview.width - 60. , - , ( ) (20 ). 3 , , . , ( ) 20 , , , ( , >= 20 , , 20 ). , UIScrollView UIView.
, , 4 . , , , . , 20 , , . - ? ? , ( , ):
