I have a UIScrolLView control and I would like to execute a method when the user finishes scrolling. An alternative would be to use the touchesEnded delegate but I would like the method to get cal开发者_如何学运维led when the UIScrollView finishes scrolling. If the user scrollers really fast and let go it's finger the scroller will continue to scroll and decelerate until it no longer moves. That is when I would like to call my method. How could I do that?
You can use the delegate
scrollViewDidEndDecelerating:
精彩评论