ScrollView with AutoLayout

suggest change

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.

Now run the project and check.

Scenario 2: Lets consider a scenario where we know that content width is going to be same as scroll width width,but height is larger than scrollview.

Follow the steps to scroll content vertically.

Scenario 3:

Now we want to scroll only horizontally and not vertically.

Follow the steps to horizontally scroll the content.

Feedback about page:

Optional: your email if you want me to get back to you:

Table Of Contents