3

iPhone App how to programmatically detect Scrolling of scrollview? iPhone App how to check scrollview did Scroll?

ios
  • 6,134
  • 20
  • 71
  • 103

2 Answers2

4

You are looking for the delegate method:

scrollViewDidScroll:(UIScrollView *)

In your implementation of that method, you can check the content offset value for the new position.

The docs are here:

http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIScrollViewDelegate_Protocol/Reference/UIScrollViewDelegate.html

Also, if you just want to know the result of the scrolling after it is finished, see this answer for a similar question:

How to detect when a UIScrollView has finished scrolling

Community
  • 1
  • 1
Mike
  • 8,853
  • 3
  • 35
  • 44
0

You should check UIScrollViewDelegate Protocol Reference.

Teodor Kostov
  • 313
  • 1
  • 11