RBLayoutView Class Reference

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

Overview

A normal layout view that is preloaded with its cells.

– pushCell:

Push a new cell to the layout view.

- (BOOL)pushCell:(nonnull __kindof UIView *)cell

Parameters

cell

The cell to push to the layout view.

Return Value

Whether or not the operation was successful.

Declared In

RBLayoutView.h

– insertCell:atIndex:

Insert a new cell to the layout view at the given index.

- (BOOL)insertCell:(nonnull __kindof UIView *)cell atIndex:(NSInteger)index

Parameters

cell

The cell to insert to the layout view.

index

The index at which to insert the cell.

Return Value

Whether or not the operation was successful.

Declared In

RBLayoutView.h

– popCell

Pop the last cell from the layout view.

- (BOOL)popCell

Return Value

Whether or not the operation was successful.

Declared In

RBLayoutView.h

– popAllCells

Pop all of the cells from the layout view.

- (BOOL)popAllCells

Return Value

Whether or not the operation was successful.

Declared In

RBLayoutView.h

– removeCellAtIndex:

Remove the cell at the given index from the layout view.

- (BOOL)removeCellAtIndex:(NSInteger)index

Parameters

index

The index of the cell to remove.

Return Value

Whether or not the operation was successful.

Declared In

RBLayoutView.h

– removeCell:

Remove the given cell from the layout view.

- (BOOL)removeCell:(nonnull __kindof UIView *)cell

Parameters

cell

The cell to remove from the layout view.

Return Value

Whether or not the operation was successful.

Declared In

RBLayoutView.h

  cells

The array of cells in the layout view.

@property (nonatomic, readonly, nonnull) NSArray<__kindofUIView*> *cells

Declared In

RBLayoutView.h

– containsCell:

Whether or not the layout view contains the given cell.

- (BOOL)containsCell:(nonnull __kindof UIView *)cell

Parameters

cell

The cell to check for.

Return Value

Whether or not the cell was found in the layout view.

Declared In

RBLayoutView.h

– indexOfCell:

Gets the index of the given cell in the layout view.

- (NSInteger)indexOfCell:(nonnull __kindof UIView *)cell

Parameters

cell

The cell to find the index of.

Return Value

The index of the cell, or NSNotFound if it was not found.

Declared In

RBLayoutView.h