RBLazyLayoutViewDelegate Protocol Reference

Conforms to NSObject
RBBaseLayoutViewDelegate
Declared in RBLazyLayoutView.h

Overview

A delegate that receives cell loading, appearance and positioning events.

– layoutViewWillReloadData:

Called when the layout view will reload it’s cells from the data source.

- (void)layoutViewWillReloadData:(nonnull RBLazyLayoutView *)layoutView

Parameters

layoutView

The layout view.

Declared In

RBLazyLayoutView.h

– layoutViewDidReloadData:

Called when the layout view has reloaded it’s cells from the data source.

- (void)layoutViewDidReloadData:(nonnull RBLazyLayoutView *)layoutView

Parameters

layoutView

The layout view.

Declared In

RBLazyLayoutView.h

– layoutView:shouldReceiveTouch:

Called to determine if a touch event that will affect the button area or affect the cell state should be allowed.

- (BOOL)layoutView:(nonnull RBLazyLayoutView *)layoutView shouldReceiveTouch:(nonnull UITouch *)touch

Parameters

layoutView

The layout view object.

touch

The touch data.

Return Value

Whether or not the touch should be allowed.

Declared In

RBLazyLayoutView.h

– layoutView:willSelectCellAt:

Called when a cell will be selected and used to determine if the state change should be allowed.

- (BOOL)layoutView:(nonnull RBLazyLayoutView *)layoutView willSelectCellAt:(NSInteger)index

Parameters

layoutView

The layout view.

index

The index of the cell.

Return Value

Whether or not to allow the state change.

Declared In

RBLazyLayoutView.h

– layoutView:didSelectCellAt:

Called when a cell has been selected.

- (void)layoutView:(nonnull RBLazyLayoutView *)layoutView didSelectCellAt:(NSInteger)index

Parameters

layoutView

The layout view.

index

The index of the cell.

Declared In

RBLazyLayoutView.h

– layoutView:willDeselectCellAt:

Called when a cell will be deselected and used to determine if the state change should be allowed.

- (BOOL)layoutView:(nonnull RBLazyLayoutView *)layoutView willDeselectCellAt:(NSInteger)index

Parameters

layoutView

The layout view.

index

The index of the cell.

Return Value

Whether or not to allow the state change.

Declared In

RBLazyLayoutView.h

– layoutView:didDeselectCellAt:

Called when a cell has been deselected.

- (void)layoutView:(nonnull RBLazyLayoutView *)layoutView didDeselectCellAt:(NSInteger)index

Parameters

layoutView

The layout view.

index

The index of the cell.

Declared In

RBLazyLayoutView.h

– layoutView:willEnableCellAt:

Called when a cell will be enabled and used to determine if the state change should be allowed.

- (BOOL)layoutView:(nonnull RBLazyLayoutView *)layoutView willEnableCellAt:(NSInteger)index

Parameters

layoutView

The layout view.

index

The index of the cell.

Return Value

Whether or not to allow the state change.

Declared In

RBLazyLayoutView.h

– layoutView:didEnableCellAt:

Called when a cell has been enabled.

- (void)layoutView:(nonnull RBLazyLayoutView *)layoutView didEnableCellAt:(NSInteger)index

Parameters

layoutView

The layout view.

index

The index of the cell.

Declared In

RBLazyLayoutView.h

– layoutView:willDisableCellAt:

Called when a cell will be disabled and used to determine if the state change should be allowed.

- (BOOL)layoutView:(nonnull RBLazyLayoutView *)layoutView willDisableCellAt:(NSInteger)index

Parameters

layoutView

The layout view.

index

The index of the cell.

Return Value

Whether or not to allow the state change.

Declared In

RBLazyLayoutView.h

– layoutView:didDisableCellAt:

Called when a cell has been disabled.

- (void)layoutView:(nonnull RBLazyLayoutView *)layoutView didDisableCellAt:(NSInteger)index

Parameters

layoutView

The layout view.

index

The index of the cell.

Declared In

RBLazyLayoutView.h

– layoutView:shouldHighlightCellAt:

Called when a cell will be highlighted and used to determine if the state change should be allowed.

- (BOOL)layoutView:(nonnull RBLazyLayoutView *)layoutView shouldHighlightCellAt:(NSInteger)index

Parameters

layoutView

The layout view.

index

The index of the cell.

Return Value

Whether or not to allow the state change.

Declared In

RBLazyLayoutView.h

– layoutView:didHighlightCellAt:

Called when a cell has been highlighted.

- (void)layoutView:(nonnull RBLazyLayoutView *)layoutView didHighlightCellAt:(NSInteger)index

Parameters

layoutView

The layout view.

index

The index of the cell.

Declared In

RBLazyLayoutView.h

– layoutView:didUnhighlightCellAt:

Called when a cell has been unhighlighted.

- (void)layoutView:(nonnull RBLazyLayoutView *)layoutView didUnhighlightCellAt:(NSInteger)index

Parameters

layoutView

The layout view.

index

The index of the cell.

Declared In

RBLazyLayoutView.h

– layoutView:canOpenButtonAreaAt:

Called when a cells button area will open and used to determine if this should be allowed.

- (BOOL)layoutView:(nonnull RBLazyLayoutView *)layoutView canOpenButtonAreaAt:(NSInteger)index

Parameters

layoutView

The layout view.

index

The index of the cell.

Return Value

Whether or not to allow the button area to open.

Declared In

RBLazyLayoutView.h

– layoutView:didOpenButtonAreaAt:

Called when a cells button area has been open.

- (void)layoutView:(nonnull RBLazyLayoutView *)layoutView didOpenButtonAreaAt:(NSInteger)index

Parameters

layoutView

The layout view.

index

The index of the cell.

Declared In

RBLazyLayoutView.h

– layoutView:didCloseButtonAreaAt:

Called when a cells button area has been closed.

- (void)layoutView:(nonnull RBLazyLayoutView *)layoutView didCloseButtonAreaAt:(NSInteger)index

Parameters

layoutView

The layout view.

index

The index of the cell.

Declared In

RBLazyLayoutView.h

– layoutView:didSelectButtonAreaButtonWithIdentifier:leftArea:at:

Called when a cells button area will open and used to determine if this should be allowed.

- (BOOL)layoutView:(nonnull RBLazyLayoutView *)layoutView didSelectButtonAreaButtonWithIdentifier:(nonnull NSString *)identifier leftArea:(BOOL)left at:(NSInteger)index

Parameters

layoutView

The layout view.

identifier

The identifier of the selected button.

left

Which button area was opened the left (YES) or the right (NO).

index

The index of the cell.

Return Value

Whether or not close the button area.

Declared In

RBLazyLayoutView.h