开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜