Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Ok, I find manually adding the autolayout constraints to be quite confusing, using the "Add New Constraints" button at the bottom really comes in handy, try this, after you get each view where you want it use that way of adding layout constraints for each view (ie scrollView, containerView, UIImageView) I did this, and heres the example, select each constraint as I have so that the top, left, bottom, and right edges are set, this should do exactly what you want. </p> <p>You will probably want to erase all your current constraints and then implement them this way.</p> <p>heres the layout like you want <a href="http://cl.ly/image/463k2043401L" rel="nofollow">http://cl.ly/image/463k2043401L</a></p> <p>and heres the example adding the constraints: <a href="http://cl.ly/image/472l2V0l3N1L" rel="nofollow">http://cl.ly/image/472l2V0l3N1L</a></p> <p>To keep it dynamic so that you can rotate it, you will want to do the above for all view BUT the container view... then If you control drag from container to scrollview with no constraints, you can add all of them that it suggests except for the height and width at the bottom, that satisfies any missing constraints and should do the trick, It will center the container inside of the scrollview and keep it pinned to the top, bottom, left and right, and it should dynamically change with your scrollview content size. </p> <p><a href="http://cl.ly/image/1o3k1e452W0g" rel="nofollow">http://cl.ly/image/1o3k1e452W0g</a></p> <p>Sorry for the confusion, hope this helps!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload