-
Notifications
You must be signed in to change notification settings - Fork 421
CAScrollViewDelegate
It’s CAScrollView agent class, defines four ports that respond to scrollView related operation, and declares a port that is used to remove agent.
Access modifier |
Method name |
Description |
Public |
scrollViewDidScroll |
Respond to view scroll |
Public |
scrollViewWillBeginDragging |
Is called when scroll starts |
Public |
scrollViewDidEndDragging |
Is called when scroll ends |
Public |
scrollViewDidZoom |
Respond to view scale |
virtual void scrollViewDidScroll(CAScrollView view){}*
Return value: void
Description: any scroll operation on view will trigger this port.
virtual void scrollViewWillBeginDragging(CAScrollView view){}*
Return value: void
Description: it’s called when you touch view and are ready to scroll
virtual void scrollViewDidEndDragging(CAScrollView view){}*
Return value: void
Description: it’s called when you finish scroll and is ready to leave view
virtual void scrollViewDidZoom(CAScrollView view){}*
return value: void
description: it’s called when you scale view.