dynamic height of of scrollview subviews in autolayout ios
<p>I am creating a UIScrollView from xib, in which 3 view are there 2 UIViews and in middle an UIImageView. when I am setting constraints Xcode asked to set Y position constrains. But the problem is Y position constraint is blocking Scrollview to scroll down and automatically adjusting the views  which looks ugly in landscape mode.</p>

<p><a href="https://i.stack.imgur.com/hwc1y.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hwc1y.png" alt="enter image description here"></a></p>

<p>when I am delete that constraint it ask to fix height of subview. I searched a lot but I am new in autolayout so not understanding many of solutions. any help would be great.</p>