Manually laid out view in auto layout super view
<p>I have some not so ordinary problem related to mixing of Auto Layout and  Manual layout. </p>

<ol>
<li><strong>view1</strong> - super view that uses auto layout</li>
<li><strong>view2</strong> - subview that uses manual layout</li>
</ol>

<p><strong>view1</strong>'s height depends on the total height of the subviews.</p>

<p>I set <code>translatesAutoresizingMaskIntoConstraints = NO</code> and <code>frame</code> for <strong>view2</strong> and add it as subview to the <strong>view1</strong> . The resulted height of <strong>view2</strong> is 0 (in the <code>layoutSubviews</code>) </p>

<p>So, the auto layout of the <strong>view1</strong> doesn't pay attention to the <strong>view2's</strong> height when determines self height. And then propagate this 0 height to the <strong>view2</strong>.</p>

<p>Need advice. I'm not sure that this is legal.</p>