RBLayoutFlexiPositioner Class Reference

Inherits from RBLayoutPositioner : NSObject
Declared in RBLayoutFlexiPositioner.h

Overview

A flexible grid based positioner that provides the ability to specifically size and layout items based on a wide variety of criteria.

  • Rows do not need to contain similar numbers of cells.
  • Autosize cells or rows to match contents.
  • Automatically grow cells and rows to take up unused space.
  • Set the size of cells and rows by pt or as a percentage.
  • Set cells or rows to be empty.
  • Provide minimum, maximum values for rows and cells as pt or percentage.
  • Anchor content within cells horizontally, vertically or both.
  • Expand content within cells to utilise available space horizontally, vertically or both.
  • Provide margins and spacing values.

  schema

A schema that describes sizing and layout.

@property (nonatomic, nonnull) RBLayoutFlexiPositionerSchema *schema

Discussion

A schema that describes sizing and layout.

Declared In

RBLayoutFlexiPositioner.h

– initWithSchema:

Initializes a new RBLayoutFlexiPositioner using the supplied schema.

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

Parameters

schema

The schema to use.

Return Value

The initialized positioner.

Discussion

Initializes a new RBLayoutFlexiPositioner using the supplied schema.

Declared In

RBLayoutFlexiPositioner.h