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 *)scrollView

Parameters

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 *)scrollView

Parameters

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)decelerate

Parameters

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 *)scrollView

Parameters

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 *)scrollView

Parameters

scrollView

The scroll view the event originated from.

Declared In

CCScrollView.h