iphoneiosxcodeuiscrollviewuiscrollviewdelegate

scrollViewDidScroll delegate is invoking automatically


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?


Solution

  • scrollViewDidScroll also gets invoked when the orientation changes. This I came to know from here. This was the problem I was facing. And now my problem solved with this post.