RBLayoutFlexiPositioner Class Reference

Inherits from RBLayoutSchemaPositioner : 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.

– 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.

Declared In

RBLayoutFlexiPositioner.h

+ withSchema:

Initializes a new RBLayoutFlexiPositioner using the supplied schema.

+ (nonnull instancetype)withSchema:(nonnull RBLayoutFlexiPositionerSchema *)schema

Parameters

schema

The schema to use.

Return Value

The initialized positioner.

Declared In

RBLayoutFlexiPositioner.h