Use scrollViewWillBeginDragging
. This method does not get called when programmatically setting the offset.
How to tell if the user dragged the scroll view vs. me setting the content offset
-
29-08-2022 - |
Frage
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.
Lösung
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow