RBLayoutRelativePositionerSchema Class Reference

Inherits from RBLayoutSchemaPositionerSchema : NSObject
Declared in RBLayoutRelativePositionerSchema.h

Overview

Validates and holds cell schemas that describe the layout for a RBLayoutRelativePositioner.

  views

An array of UIView objects in the order that they should be added to a layout view. The UIViews are extracted from the provided cell schemas.

@property (nonatomic, nonnull, readonly) NSArray<UIView*> *views

Declared In

RBLayoutRelativePositionerSchema.h

  cellSchemas

An array of RBLayoutRelativePositionerCellSchema objects that detail the layout of views.

@property (nonatomic, nonnull, readonly) NSArray<RBLayoutRelativePositionerCellSchema*> *cellSchemas

Declared In

RBLayoutRelativePositionerSchema.h

+ withCellSchemas:

Creates a new RBLayoutRelativePositionerSchema using the supplied cell schemas.

+ (nonnull instancetype)withCellSchemas:(nonnull NSArray<RBLayoutRelativePositionerCellSchema*> *)cellSchemas

Parameters

cellSchemas

The cells schemas to use.

Return Value

The created schema.

Declared In

RBLayoutRelativePositionerSchema.h

– initWithCellSchemas:

Initializes a new RBLayoutRelativePositionerSchema using the supplied cell schemas.

- (nonnull instancetype)initWithCellSchemas:(nonnull NSArray<RBLayoutRelativePositionerCellSchema*> *)cellSchemas

Parameters

cellSchemas

The cells schemas to use.

Return Value

The initialized schema.

Declared In

RBLayoutRelativePositionerSchema.h

– schemaForView:

Finds the cell schema that pertains to the UIView provided.

- (nullable RBLayoutRelativePositionerCellSchema *)schemaForView:(nonnull UIView *)view

Parameters

view

The view.

Return Value

The corresponding RBLayoutRelativePositionerCellSchema or nil if not found.

Declared In

RBLayoutRelativePositionerSchema.h