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.

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top