Skip to content

Instantly share code, notes, and snippets.

@datwelk
Created August 13, 2012 09:09
Show Gist options
  • Save datwelk/3338514 to your computer and use it in GitHub Desktop.
Save datwelk/3338514 to your computer and use it in GitHub Desktop.
How to detect whether a tableview is scrolling or not?
- KVO on isDragging and isDecelerating?
NO. isDragging and isDecelerating are not KVO compliant.
- UITableView subclass with custom isScrolling property + UIScrollViewDelegate?
NO. UIScrollViewDelegate methods don't work in the UITableView subclass.
Ugly solution: implement 7 UIScrollViewDelegate methods in your viewcontroller subclass. Result: messy code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment