Simple steps to use scrollview with autolayout.

What this will do is,simply stick every edge of scrollview to viewcontroller’s view

Scenario 1:

Now lets say our content is huge,and we want it to scroll horizontally as well as vertically.

For this,

Next comes the important part,we need it to scroll horizontally and vertically.

Let me explain what we did in above step.