开发者

iPhone App how to programmatically detect Scrolling of scrollview?

开发者 https://www.devze.com 2023-03-15 03:57 出处:网络
iP开发者_Go百科hone App how toprogrammatically detect Scrolling of scrollview? iPhone App how to check scrollview did Scroll?You are looking for the delegate method:

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

精彩评论

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