What does contentOffset do in a UIScrollView?

Akash picture Akash · Jul 27, 2010 · Viewed 40.5k times · Source

What is the use of the contentOffset property in UIScrollView?

Answer

Mehdi picture Mehdi · Aug 21, 2016

It could be considered as the coordinate of the origin of scrollView's frame relative to the origin of its contentView's frame. See the picture below:

enter image description here