scrollViewDidScroll delegate is invoking automatically

Viewed 8303

I am using scrollViewDidScroll delegate in my application.

But, many times, even though I dint start scrolling, this delegate is getting invoked which is creating a lot of problem. I heard that even when contentSize for a particular scroll view is set then at that time also this delegate i.e., scrollViewDidScroll will invoke.

What are the different scenarios in which this delegate gets invoked. What are the steps to control this?

Can I set any parameter to handle this?

5 Answers

Hi Guys its very old question, however, if you wanna know if the scrollDidScroll was triggered manually(through finger) or its due to other event like didSelect or setContentOffset, use the UIScrollView.isTracking property.

Related