Domanda

I am responding to the scrollViewDidScroll delegate method, and I want to be able to tell if the scrolling happened because the user dragged the table view or if it happened because I programmatically changed the offset.

È stato utile?

Soluzione

Use scrollViewWillBeginDragging. This method does not get called when programmatically setting the offset.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top