ASCenterLayoutSpec Class Reference
| Inherits from | ASLayoutSpec : NSObject |
|---|---|
| Declared in | ASCenterLayoutSpec.h |
Overview
Lays out a single layoutable child and position it so that it is centered into the layout bounds.
+ centerLayoutSpecWithCenteringOptions:sizingOptions:child:
Initializer.
+ (instancetype)centerLayoutSpecWithCenteringOptions:(ASCenterLayoutSpecCenteringOptions)centeringOptions sizingOptions:(ASCenterLayoutSpecSizingOptions)sizingOptions child:(id<ASLayoutable>)childParameters
centeringOptions |
How the child is centered. |
|---|---|
sizingOptions |
How much space will be taken up. |
child |
The child to center. |
Declared In
ASCenterLayoutSpec.h