RBBaseLayoutView Class Reference

Inherits from RBScrollView : UIScrollView
Conforms to RBLayoutPositionerDelegate
Declared in RBBaseLayoutView.h

Overview

The abstract base class for layout views.

  supportsSchemaBasedPositioners

Whether or not a schema based is supported by this layout.

@property (nonatomic, readonly) BOOL supportsSchemaBasedPositioners

Declared In

RBBaseLayoutView.h

  positioner

The positioner that determines how the cells are positioned and sized.

@property (nonatomic, nonnull) RBLayoutPositioner *positioner

Declared In

RBBaseLayoutView.h

  animator

The animator to animate cells as they appear and disappear.

@property (nonatomic, nullable) RBLayoutAnimator *animator

Declared In

RBBaseLayoutView.h

  animateScrollOnly

Whether or not animation should occur during scrolling only.

@property (nonatomic) BOOL animateScrollOnly

Declared In

RBBaseLayoutView.h

  delegate

The delegate to be informed of appearance and positioning events.

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

Declared In

RBBaseLayoutView.h

  visibleCells

An array of the cells that are currently visible.

@property (nonatomic, readonly, nonnull) RBFragmentedArray *visibleCells

Declared In

RBBaseLayoutView.h

– cellFrameAtIndex:

The frame of the cell at the given index.

- (CGRect)cellFrameAtIndex:(NSInteger)index

Parameters

index

The index of the cell.

Return Value

The frame of the cell or CGRectNull if a cell with the requested index does not exist.

Declared In

RBBaseLayoutView.h

– scrollToCellAtIndex:position:orientation:offset:animated:

Scroll to the given cell index.

- (void)scrollToCellAtIndex:(NSInteger)index position:(RBBaseLayoutViewScrollPosition)position orientation:(RBOrientation)orientation offset:(CGFloat)offset animated:(BOOL)animated

Parameters

index

The index of the cell.

position

The position of the cell.

orientation

The orientation of the scrolling movement.

offset

An additional offset to apply to the scroll position.

animated

Animate the scrolling.

Return Value

The index of the cell or NSNotFound if the cell is not visible or otherwise unavailable.

Declared In

RBBaseLayoutView.h

  shouldAnimate

Whether or not an appearing or disappearing cell should animate.

@property (nonatomic, readonly) BOOL shouldAnimate

Declared In

RBBaseLayoutView.h

  shouldDisableScrolling

Whether or not scrolling should be disabled. Override this to disable scrolling while you perform an update.

@property (nonatomic, readonly) BOOL shouldDisableScrolling

Declared In

RBBaseLayoutView.h

– setScrollEnabledNeedsUpdate

Notify the layout view to update whether scrolling is enabled or disabled based on the value of shouldDisableScrolling.

- (void)setScrollEnabledNeedsUpdate

Declared In

RBBaseLayoutView.h

– cellWillPosition:withIndex:withFrame:

Called when a cell will be positioned with a new frame.

- (void)cellWillPosition:(nonnull __kindof UIView *)view withIndex:(NSInteger)index withFrame:(CGRect)frame

Parameters

view

The view of the cell.

index

The index of the cell in the layout view.

frame

The new frame being applied to the cell.

Declared In

RBBaseLayoutView.h

– cellDidPosition:withIndex:withFrame:

Called when a cell was positioned with a new frame.

- (void)cellDidPosition:(nonnull __kindof UIView *)view withIndex:(NSInteger)index withFrame:(CGRect)frame

Parameters

view

The view of the cell.

index

The index of the cell in the layout view.

frame

The new frame being applied to the cell.

Declared In

RBBaseLayoutView.h

– cellWillAppear:withIndex:withFrame:

Called when a cell will appear.

- (void)cellWillAppear:(nonnull __kindof UIView *)view withIndex:(NSInteger)index withFrame:(CGRect)frame

Parameters

view

The view of the cell.

index

The index of the cell in the layout view.

frame

The frame that the cell is appearing with.

Declared In

RBBaseLayoutView.h

– cellDidAppear:withIndex:withFrame:

Called when a cell did appear.

- (void)cellDidAppear:(nonnull __kindof UIView *)view withIndex:(NSInteger)index withFrame:(CGRect)frame

Parameters

view

The view of the cell.

index

The index of the cell in the layout view.

frame

The frame that the cell is appearing with.

Declared In

RBBaseLayoutView.h

– cellWillDisappear:withIndex:

Called when a cell will disappear.

- (void)cellWillDisappear:(nonnull __kindof UIView *)view withIndex:(NSInteger)index

Parameters

view

The view of the cell.

index

The index of the cell in the layout view.

Declared In

RBBaseLayoutView.h

– cellDidDisappear:withIndex:

Called when a cell did disappear.

- (void)cellDidDisappear:(nonnull __kindof UIView *)view withIndex:(NSInteger)index

Parameters

view

The view of the cell.

index

The index of the cell in the layout view.

Declared In

RBBaseLayoutView.h