iPhone App how to programmatically detect Scrolling of scrollview?
iP开发者_Go百科hone App how to programmatically detect Scrolling of scrollview? iPhone App how to check scrollview did Scroll?
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
You should check UIScrollViewDelegate Protocol Reference.
精彩评论