RBScrollView Class Reference

Inherits from UIScrollView
Declared in RBScrollView.h

Overview

A UIScrollView with extensions.

  delegate

A delegate to receive scroll view events.

@property (nonatomic, weak, nullable) id<RBScrollViewDelegate,UIScrollViewDelegate> delegate

Discussion

A delegate to receive scroll view events.

Declared In

RBScrollView.h

  observers

A collection of RBScrollViewObserver objects to receive scroll view events.

@property (nonatomic, readonly, nonnull) RBObserverCollection *observers

Discussion

A collection of RBScrollViewObserver objects to receive scroll view events.

Declared In

RBScrollView.h

  shouldAutomaticallyAdjustContentInsetForChrome

Whether or not the scroll view should automatically update it’s insets according to changes to contentChromeInset.

@property (nonatomic) BOOL shouldAutomaticallyAdjustContentInsetForChrome

Discussion

Whether or not the scroll view should automatically update it’s insets according to changes to contentChromeInset.

Declared In

RBScrollView.h

  shouldMonitorBackTaps

Whether or not the scroll view should monitor taps to the content background.

@property (nonatomic) BOOL shouldMonitorBackTaps

Discussion

Whether or not the scroll view should monitor taps to the content background.

Declared In

RBScrollView.h

  shouldForceScrollEnabled

Whether or not the scroll view should force scroll to be enabled - even if it’s not required to access the content. Such as when you need a pull-to-refresh.

@property (nonatomic) BOOL shouldForceScrollEnabled

Discussion

Whether or not the scroll view should force scroll to be enabled - even if it’s not required to access the content. Such as when you need a pull-to-refresh.

Declared In

RBScrollView.h

  currentScrollVector

The current vector of change in the current scroll.

@property (nonatomic, readonly) CGVector currentScrollVector

Discussion

The current vector of change in the current scroll.

Declared In

RBScrollView.h

  lastScrollUpdateVector

The vector of change in the previous scroll operation.

@property (nonatomic, readonly) CGVector lastScrollUpdateVector

Discussion

The vector of change in the previous scroll operation.

Declared In

RBScrollView.h

  visibleContentFrame

The frame within the content that is currently in view (in the viewport).

@property (nonatomic, readonly) CGRect visibleContentFrame

Discussion

The frame within the content that is currently in view (in the viewport).

Declared In

RBScrollView.h

  contentViewport

The frame within the bounds where the content is visible.

@property (nonatomic, readonly) CGRect contentViewport

Discussion

The frame within the bounds where the content is visible.

Declared In

RBScrollView.h

  topExtendView

The top extend view.

@property (nonatomic, nullable) RBBaseExtendView *topExtendView

Discussion

The top extend view.

Declared In

RBScrollView.h

  bottomExtendView

The bottom extend view.

@property (nonatomic, nullable) RBBaseExtendView *bottomExtendView

Discussion

The bottom extend view.

Declared In

RBScrollView.h

– scrollViewWasTapped

Called when the scroll view is tapped anywhere.

- (void)scrollViewWasTapped

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

Discussion

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

Declared In

RBScrollView.h

– willBeginScrollAtOrigin:

Called when a scroll operation will begin.

- (void)willBeginScrollAtOrigin:(CGPoint)origin

Parameters

origin

The content origin at the start of the scroll operation.

Discussion

Called when a scroll operation will begin.

Declared In

RBScrollView.h

– didScrollToOrigin:fromOrigin:

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

- (void)didScrollToOrigin:(CGPoint)origin fromOrigin:(CGPoint)fromOrigin

Parameters

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

– didEndDragging:

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

- (void)didEndDragging:(BOOL)willDecelerate

Parameters

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

– didFinishScrollToOrigin:fromOrigin:

Called when a scroll operation has finished.

- (void)didFinishScrollToOrigin:(CGPoint)origin fromOrigin:(CGPoint)fromOrigin

Parameters

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