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

Declared In

RBScrollView.h

  observers

A collection of RBScrollViewObserver objects to receive scroll view events.

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

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

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

Declared In

RBScrollView.h

  currentScrollVector

The current vector of change in the current scroll.

@property (nonatomic, readonly) CGVector currentScrollVector

Declared In

RBScrollView.h

  lastScrollUpdateVector

The vector of change in the previous scroll operation.

@property (nonatomic, readonly) CGVector lastScrollUpdateVector

Declared In

RBScrollView.h

  visibleContentFrame

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

@property (nonatomic, readonly) CGRect visibleContentFrame

Declared In

RBScrollView.h

  contentViewport

The frame within the bounds where the content is visible.

@property (nonatomic, readonly) CGRect contentViewport

Declared In

RBScrollView.h

  topExtendView

The top extend view. Note extend views manage and set contentInsets and contentOffsets.

@property (nonatomic, nullable) RBBaseExtendView *topExtendView

Declared In

RBScrollView.h

  bottomExtendView

The bottom extend view. Note extend views manage and set contentInsets and contentOffsets.

@property (nonatomic, nullable) RBBaseExtendView *bottomExtendView

Declared In

RBScrollView.h

  leftExtendView

The left extend view. Note extend views manage and set contentInsets and contentOffsets.

@property (nonatomic, nullable) RBBaseExtendView *leftExtendView

Declared In

RBScrollView.h

  rightExtendView

The right extend view. Note extend views manage and set contentInsets and contentOffsets.

@property (nonatomic, nullable) RBBaseExtendView *rightExtendView

Declared In

RBScrollView.h

– scrollViewWasTapped

Called when the scroll view is tapped anywhere.

- (void)scrollViewWasTapped

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.

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.

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.

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.

Declared In

RBScrollView.h