Simple steps to use scrollview with autolayout.

http://i.stack.imgur.com/8TeQg.png

http://i.stack.imgur.com/dgQtO.png

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,

http://i.stack.imgur.com/Htt43.png

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

http://i.stack.imgur.com/KDALt.png

Let me explain what we did in above step.