Package apple.uikit.protocol
Interface UIScrollViewDelegate
-
- All Known Subinterfaces:
PKCanvasViewDelegate,UICollectionViewDelegate,UICollectionViewDelegateFlowLayout,UIScrollViewAccessibilityDelegate,UITableViewDelegate,UITextViewDelegate
- All Known Implementing Classes:
CABTMIDICentralViewController,SLComposeServiceViewController,UICollectionViewController,UITableViewController,UIWebView
public interface UIScrollViewDelegate
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidscrollViewDidChangeAdjustedContentInset(UIScrollView scrollView)Also see -[UIScrollView adjustedContentInsetDidChange]default voidscrollViewDidEndDecelerating(UIScrollView scrollView)called when scroll view grinds to a haltdefault voidscrollViewDidEndDraggingWillDecelerate(UIScrollView scrollView, boolean decelerate)called on finger up if the user dragged. decelerate is true if it will continue moving afterwardsdefault voidscrollViewDidEndScrollingAnimation(UIScrollView scrollView)called when setContentOffset/scrollRectVisible:animated: finishes. not called if not animatingdefault voidscrollViewDidEndZoomingWithViewAtScale(UIScrollView scrollView, UIView view, double scale)scale between minimum and maximum. called after any 'bounce' animationsdefault voidscrollViewDidScroll(UIScrollView scrollView)any offset changesdefault voidscrollViewDidScrollToTop(UIScrollView scrollView)called when scrolling animation finished. may be called immediately if already at topdefault voidscrollViewDidZoom(UIScrollView scrollView)any zoom scale changesdefault booleanscrollViewShouldScrollToTop(UIScrollView scrollView)return a yes if you want to scroll to the top. if not defined, assumes YESdefault voidscrollViewWillBeginDecelerating(UIScrollView scrollView)called on finger up as we are movingdefault voidscrollViewWillBeginDragging(UIScrollView scrollView)called on start of dragging (may require some time and or distance to move)default voidscrollViewWillBeginZoomingWithView(UIScrollView scrollView, UIView view)called before the scroll view begins zooming its contentdefault voidscrollViewWillEndDraggingWithVelocityTargetContentOffset(UIScrollView scrollView, CGPoint velocity, CGPoint targetContentOffset)called on finger up if the user dragged. velocity is in points/millisecond. targetContentOffset may be changed to adjust where the scroll view comes to restdefault UIViewviewForZoomingInScrollView(UIScrollView scrollView)return a view that will be scaled. if delegate returns nil, nothing happens
-
-
-
Method Detail
-
scrollViewDidEndDecelerating
default void scrollViewDidEndDecelerating(UIScrollView scrollView)
called when scroll view grinds to a halt
-
scrollViewDidEndDraggingWillDecelerate
default void scrollViewDidEndDraggingWillDecelerate(UIScrollView scrollView, boolean decelerate)
called on finger up if the user dragged. decelerate is true if it will continue moving afterwards
-
scrollViewDidEndScrollingAnimation
default void scrollViewDidEndScrollingAnimation(UIScrollView scrollView)
called when setContentOffset/scrollRectVisible:animated: finishes. not called if not animating
-
scrollViewDidEndZoomingWithViewAtScale
default void scrollViewDidEndZoomingWithViewAtScale(UIScrollView scrollView, UIView view, double scale)
scale between minimum and maximum. called after any 'bounce' animations
-
scrollViewDidScroll
default void scrollViewDidScroll(UIScrollView scrollView)
any offset changes
-
scrollViewDidScrollToTop
default void scrollViewDidScrollToTop(UIScrollView scrollView)
called when scrolling animation finished. may be called immediately if already at top
-
scrollViewDidZoom
default void scrollViewDidZoom(UIScrollView scrollView)
any zoom scale changes
-
scrollViewShouldScrollToTop
default boolean scrollViewShouldScrollToTop(UIScrollView scrollView)
return a yes if you want to scroll to the top. if not defined, assumes YES
-
scrollViewWillBeginDecelerating
default void scrollViewWillBeginDecelerating(UIScrollView scrollView)
called on finger up as we are moving
-
scrollViewWillBeginDragging
default void scrollViewWillBeginDragging(UIScrollView scrollView)
called on start of dragging (may require some time and or distance to move)
-
scrollViewWillBeginZoomingWithView
default void scrollViewWillBeginZoomingWithView(UIScrollView scrollView, UIView view)
called before the scroll view begins zooming its content
-
scrollViewWillEndDraggingWithVelocityTargetContentOffset
default void scrollViewWillEndDraggingWithVelocityTargetContentOffset(UIScrollView scrollView, CGPoint velocity, CGPoint targetContentOffset)
called on finger up if the user dragged. velocity is in points/millisecond. targetContentOffset may be changed to adjust where the scroll view comes to rest
-
viewForZoomingInScrollView
default UIView viewForZoomingInScrollView(UIScrollView scrollView)
return a view that will be scaled. if delegate returns nil, nothing happens
-
scrollViewDidChangeAdjustedContentInset
default void scrollViewDidChangeAdjustedContentInset(UIScrollView scrollView)
Also see -[UIScrollView adjustedContentInsetDidChange]
-
-