Add UIScrollView programmatically

Add a UIScrollView programmatically is very simple:

In the second part, we give the size of the scroll:

This CGSizeMake(640, 460), means that our scrollview scrolls vertically up to 640px.
So the only thing to do is to calculate how much we want to scroll, in setContentSize.

Leave a Comment

Your email address will not be published. Required fields are marked *