RBLayoutSchemaPositioner Class Reference

Inherits from RBLayoutPositioner : NSObject
Declared in RBLayoutSchemaPositioner.h

Overview

A positioner that uses a passed in schema (meta data concerning specific views) and the UIView’s described by the schema. When using a RBLayoutSchemaPositioner certain layout views methods such as pushCell, insertCellAtIndex etc can-not be called an exception will be thrown if the attempt is made.

  schemaDelegate

The delegate of the positioner, to receive a positioner schema event to add or remove cells.

@property (nonatomic, weak, nullable) id<RBLayoutSchemaPositionerDelegate> schemaDelegate

Declared In

RBLayoutSchemaPositioner.h

  schema

The schema that holds the views and layout data for the positioner.

@property (nonatomic, nonnull, readonly) RBLayoutSchemaPositionerSchema *schema

Declared In

RBLayoutSchemaPositioner.h

– initWithSchema:

Initializes a new RBLayoutSchemaPositioner using the supplied schema.

- (nonnull instancetype)initWithSchema:(nonnull RBLayoutSchemaPositionerSchema *)schema

Parameters

schema

The schema to use.

Return Value

The initialized positioner.

Declared In

RBLayoutSchemaPositioner.h

– resetViews

Removes all existing views on the positioners by calling the schemaDelegates popAllCells method and then adds the all the views obtained via the schemas views property. This is called automatically if the schema is changed or the positioner is added to a layout view. Do not call this directly it is used internally only.

- (void)resetViews

Declared In

RBLayoutSchemaPositioner.h