RBBaseCellView Class Reference

Inherits from UIView
Declared in RBBaseCellView.h

Overview

The base class for a lazy layout view cell.

Other Methods

  bodyView

The body view of the cell.

@property (nonatomic, readonly, nonnull) UIView *bodyView

Declared In

RBBaseCellView.h

  highlighted

Whether or not the cell is currently highlighted.

@property (nonatomic, readonly) BOOL highlighted

Declared In

RBBaseCellView.h

  leftButtonAreaIsOpen

Whether or not the left button area is currently open.

@property (nonatomic, readonly) BOOL leftButtonAreaIsOpen

Declared In

RBBaseCellView.h

  rightButtonAreaIsOpen

Whether or not the right button area is currently open.

@property (nonatomic, readonly) BOOL rightButtonAreaIsOpen

Declared In

RBBaseCellView.h

  leftButtons

An array of RBCellViewButtonSchema objects describing the buttons on the left side of the cell.

@property (nonatomic, nullable) NSArray<RBCellViewButtonSchema*> *leftButtons

Declared In

RBBaseCellView.h

  rightButtons

An array of RBCellViewButtonSchema objects describing the buttons on the right side of the cell.

@property (nonatomic, nullable) NSArray<RBCellViewButtonSchema*> *rightButtons

Declared In

RBBaseCellView.h

  enabled

Whether or not the cell is currently enabled and will accept user interaction. Default = YES.

@property (nonatomic, readonly) BOOL enabled

Declared In

RBBaseCellView.h

  selected

Whether or not the cell is currently selected. Default = NO.

@property (nonatomic, readonly) BOOL selected

Declared In

RBBaseCellView.h

  alternate

Whether or not this is the ‘alternate’ cell. Default = NO.

@property (nonatomic) BOOL alternate

Declared In

RBBaseCellView.h

  minimumSize

The minimum size that the cell will return when asked using sizeThatFits:. Default = CGSizeZero.

@property (nonatomic) CGSize minimumSize

Declared In

RBBaseCellView.h

  maximumSize

The maximum size that the cell will return when asked using sizeThatFits:. Default = CGSizeZero.

@property (nonatomic) CGSize maximumSize

Declared In

RBBaseCellView.h

Subclassing Hooks

– populateBodyView:

Called when initializing the cell. Use this method to instantiate and add the subviews to the bodyView object.

- (void)populateBodyView:(nonnull __kindof UIView *)bodyView

Parameters

bodyView

The body view of the cell.

Declared In

RBBaseCellView.h

– layoutBodyView:

Called when laying out the subviews of the cell. Use this method to set the frames of the subviews in the bodyView.

- (void)layoutBodyView:(nonnull __kindof UIView *)bodyView

Parameters

bodyView

The body view of the cell.

Declared In

RBBaseCellView.h

– applyTheme:toBodyView:

Called when applying a theme to the cell. Use this method to apply the theme to the subviews of the bodyView.

- (void)applyTheme:(nonnull NSDictionary<NSString*,id> *)theme toBodyView:(nonnull __kindof UIView *)bodyView

Parameters

theme

The body theme dictionary.

bodyView

The body view of the cell.

Declared In

RBBaseCellView.h

– bodyViewSizeThatFitsSize:

Called to determine the desired size of the body view.

- (CGSize)bodyViewSizeThatFitsSize:(CGSize)size

Parameters

size

The available size in the container for the cell body.

Return Value

The desired cell body size.

Declared In

RBBaseCellView.h