RBLayoutFlexiPositionerSchema Class Reference

Inherits from RBLayoutSchemaPositionerSchema : NSObject
Declared in RBLayoutFlexiPositionerSchema.h

Overview

Describes the sizing and layout for a RBLayoutFlexiPositioner.

Provides the ability to convert an into a RBLayoutFlexiPositionerSchema. TODO: Document NSArray and NSString syntax for the schemas.

Other Methods

  rows

An array of RBLayoutFlexiPositionerRowSchema objects.

@property (nonatomic, readonly, nonnull) NSArray<RBLayoutFlexiPositionerRowSchema*> *rows

Declared In

RBLayoutFlexiPositionerSchema.h

  nonEmptyCellCount

Returns the number of cells that contain content and hence are not empty.

@property (nonatomic, readonly) NSUInteger nonEmptyCellCount

Declared In

RBLayoutFlexiPositionerSchema.h

– initWithRows:withViews:

Initializes a new RBLayoutFlexiPositionerSchema object describing a sizing and layout.

- (nonnull instancetype)initWithRows:(nonnull NSArray<RBLayoutFlexiPositionerRowSchema*> *)rows withViews:(nonnull NSArray<UIView*> *)views

Parameters

rows

An array of RBLayoutFlexiPositionerRowSchema objects.

views

An array of UIView’s that are referred to by the schema.

Return Value

A newly initialized RBLayoutFlexiPositionerSchema object representing a sizing and layout structure.

Declared In

RBLayoutFlexiPositionerSchema.h

+ withRows:withViews:

Initializes a new RBLayoutFlexiPositionerSchema object describing a sizing and layout.

+ (nonnull instancetype)withRows:(nonnull NSArray<RBLayoutFlexiPositionerRowSchema*> *)rows withViews:(nonnull NSArray<UIView*> *)views

Parameters

rows

An array of RBLayoutFlexiPositionerRowSchema objects.

views

An array of UIView’s that are referred to by the schema.

Return Value

A newly initialized RBLayoutFlexiPositionerSchema object representing a sizing and layout structure.

Declared In

RBLayoutFlexiPositionerSchema.h

– initWithSchemaDictionary:withViews:

Initializes a new RBLayoutFlexiPositionerSchema object from a schema dictionary.

- (nonnull instancetype)initWithSchemaDictionary:(nonnull NSDictionary<NSString*,id> *)schemaDictionary withViews:(nonnull NSArray<UIView*> *)views

Parameters

schemaDictionary

A dictionary containing the key rows that contains an array of row data.

views

An array of UIView’s that are referred to by the schema.

Return Value

A newly initialized RBLayoutFlexiPositionerSchema object representing a sizing and layout structure.

Declared In

RBLayoutFlexiPositionerSchema.h

+ withSchemaDictionary:withViews:

Initializes a new RBLayoutFlexiPositionerSchema object from a schema dictionary.

+ (nonnull instancetype)withSchemaDictionary:(nonnull NSDictionary<NSString*,id> *)schemaDictionary withViews:(nonnull NSArray<UIView*> *)views

Parameters

schemaDictionary

A dictionary containing the key rows that contains an array of row data.

views

An array of UIView’s that are referred to by the schema.

Return Value

A newly initialized RBLayoutFlexiPositionerSchema object representing a sizing and layout structure.

Declared In

RBLayoutFlexiPositionerSchema.h

– schemaDictionary

Returns a representation of the sizing and layout of this instance as a schema dictionary.

- (nonnull NSDictionary<NSString*,id> *)schemaDictionary

Return Value

The schema as an NSDictionary

Declared In

RBLayoutFlexiPositionerSchema.h

StringSerialisation Methods

– initWithStringSchema:withViews:

Initializes a new RBLayoutFlexiPositionerSchema object from an NSArray.

- (nonnull instancetype)initWithStringSchema:(nonnull NSArray<NSArray<NSString*> *> *)schema withViews:(nonnull NSArray<UIView*> *)views

Parameters

schema

An array or arrays (containing strings) describing the schema.

views

An array of UIView’s that are referred to by the schema.

Return Value

A newly initialized RBLayoutFlexiPositionerSchema object.

Declared In

RBLayoutFlexiPositionerSchema+StringSerialisation.h

+ withStringSchema:withViews:

Initializes a new RBLayoutFlexiPositionerSchema object from an NSArray.

+ (nonnull instancetype)withStringSchema:(nonnull NSArray<NSArray<NSString*> *> *)schema withViews:(nonnull NSArray<UIView*> *)views

Parameters

schema

An array or arrays (containing strings) describing the schema.

views

An array of UIView’s that are referred to by the schema.

Return Value

A newly initialized RBLayoutFlexiPositionerSchema object.

Declared In

RBLayoutFlexiPositionerSchema+StringSerialisation.h