RBScrollViewObserver Protocol Reference

Conforms to NSObject
Declared in RBScrollView.h

Overview

An observer to receive scroll view events for an RBScrollView object.

– scrollViewWasTapped:

Called when the scroll view is tapped anywhere.

- (void)scrollViewWasTapped:(nonnull RBScrollView *)scrollView

Parameters

scrollView

The RBScrollView object.

Discussion

Called when the scroll view is tapped anywhere.

Declared In

RBScrollView.h

– scrollViewBackWasTapped:

Called when the content background in the scroll view is tapped.

- (void)scrollViewBackWasTapped:(nonnull RBScrollView *)scrollView

Parameters

scrollView

The RBScrollView object.

Discussion

Called when the content background in the scroll view is tapped.

Declared In

RBScrollView.h

– scrollView:willBeginScrollAtOrigin:

Called when a scroll operation will begin.

- (void)scrollView:(nonnull RBScrollView *)scrollView willBeginScrollAtOrigin:(CGPoint)origin

Parameters

scrollView

The RBScrollView object.

origin

The content origin at the start of the scroll operation.

Discussion

Called when a scroll operation will begin.

Declared In

RBScrollView.h

– scrollView:didScrollToOrigin:fromOrigin:

Called when the scroll operation did update to the given content offset.

- (void)scrollView:(nonnull RBScrollView *)scrollView didScrollToOrigin:(CGPoint)origin fromOrigin:(CGPoint)fromOrigin

Parameters

scrollView

The RBScrollView object.

origin

The current content offset of the scroll operation.

fromOrigin

The original content offset of the scroll operation.

Discussion

Called when the scroll operation did update to the given content offset.

Declared In

RBScrollView.h

– scrollView:didEndDragging:

Called when the user stopped the dragging interaction part of the scroll.

- (void)scrollView:(nonnull RBScrollView *)scrollView didEndDragging:(BOOL)willDecelerate

Parameters

scrollView

The RBScrollView object.

willDecelerate

Whether or not the scroll will continue in deceleration mode.

Discussion

Called when the user stopped the dragging interaction part of the scroll.

Declared In

RBScrollView.h

– scrollView:didFinishScrollToOrigin:fromOrigin:

Called when a scroll operation has finished.

- (void)scrollView:(nonnull RBScrollView *)scrollView didFinishScrollToOrigin:(CGPoint)origin fromOrigin:(CGPoint)fromOrigin

Parameters

scrollView

The RBScrollView object.

origin

The final content offset of the scroll operation.

fromOrigin

The original content offset of the scroll operation.

Discussion

Called when a scroll operation has finished.

Declared In

RBScrollView.h

– scrollView:visibleContentFrameDidChangeTo:

Called when the visible content frame has changed.

- (void)scrollView:(nonnull RBScrollView *)scrollView visibleContentFrameDidChangeTo:(CGRect)visibleContentFrame

Parameters

scrollView

The RBScrollView object.

visibleContentFrame

The content frame that is currently visible.

Discussion

Called when the visible content frame has changed.

Declared In

RBScrollView.h