CCScrollViewDelegate Protocol Reference
| Conforms to | NSObject |
|---|---|
| Declared in | CCScrollView.h |
Overview
Messages a CCScrollViewDelegate can implement to receive event information such as when the view begins or ends dragging or scrolling.
– scrollViewDidScroll:
Sent when the scroll view has stopped scrolling (moving).
- (void)scrollViewDidScroll:(CCScrollView *)scrollViewParameters
scrollView |
The scroll view the event originated from. |
|---|
Declared In
CCScrollView.h
– scrollViewWillBeginDragging:
Sent when the scroll view is about to be dragged.
- (void)scrollViewWillBeginDragging:(CCScrollView *)scrollViewParameters
scrollView |
The scroll view the event originated from. |
|---|
Declared In
CCScrollView.h
– scrollViewDidEndDragging:willDecelerate:
Sent when the scroll view is no longer being dragged. Depending on scroll view settings this may not coincide with end of scrolling as the scroll view may scroll to snapp in the intended place.
- (void)scrollViewDidEndDragging:(CCScrollView *)scrollView willDecelerate:(BOOL)decelerateParameters
scrollView |
The scroll view the event originated from. |
|---|---|
decelerate |
Whether the scroll view will decelerate, in other words whether it will continue to scroll in a given direction to snap in place. |
Declared In
CCScrollView.h
– scrollViewWillBeginDecelerating:
Sent when the dragging ended but the scroll view still moves towards its designated location.
- (void)scrollViewWillBeginDecelerating:(CCScrollView *)scrollViewParameters
scrollView |
The scroll view the event originated from. |
|---|
Declared In
CCScrollView.h
– scrollViewDidEndDecelerating:
Sent when the scroll view is no longer scrolling and has come to rest.
- (void)scrollViewDidEndDecelerating:(CCScrollView *)scrollViewParameters
scrollView |
The scroll view the event originated from. |
|---|
Declared In
CCScrollView.h