UIScrollView
only scrolls when having a contentSize
larger than its frame size. If it doesn't scroll might mean that its contentSize
is not large enough. So check what its contentSize
is after setting it.
If the contentSize
is as you are expecting it to be then check for if the scrollView is scrollEnabled
or not. Sometimes enabling bounce creates an impression that the scrolling is working. Also, if the scrolling is not enabled,setting the contentOffset
works in that case too because then it moves the content according to the provided size as argument.