Autolayout with multiple containerView's of dynamic heigth in a UIScrollView
<p>I have been exploding my head on this one for weeks. I knew it was time to ask you guys after trying every <code>NSLayoutConstraint</code> combination possible:)</p>

<p>My MainViewController has several parts for news, friends, profile and etc working like a summary page for the user's activities. I want to implement these different parts as separate <code>ViewController</code>s since otherwise it would be mixing apples and pears. Right? And obviously these need to go inside a <code>UIScrollView</code> because they will be longer than the screen height.</p>

<p>One thing which makes everything harder is that these <code>childViewController</code>s' heights are of variable length and decided at runtime according to their content downloaded from the server.</p>

<p>Can you lead me to the right strategy on how to architect this design? I want to use storyboard. If not possible, I can do all it in the code too. I believe the tricky part is to set the right constraints of <code>MainViewController</code>'s subviews(<code>UIScrollView</code>, <code>UIView</code>, <code>UIContainerView</code>) and somehow passing the <code>ChildViewController</code>s height in an appropriate place.</p>

<p>And I am also amazed how little information there is on this subject. I always thought this kind of a design must be pretty popular in apps.</p>