Conforms to NSObject
Declared in TKLayout.h

Overview

Represents layouting information used by layout managers

Tasks

Properties

frame

The rect in which the views will be arranged.

@property (nonatomic) CGRect frame

Declared In

TKLayout.h

orientation

Layout’s orientation.

@property (nonatomic) TKLayoutOrientation orientation

Declared In

TKLayout.h

Instance Methods

addArrangedView:

Adds arranged view.

- (void)addArrangedView:(UIView *)view

Parameters

view

The view that will be added to the layout.

Declared In

TKLayout.h

arrangeView:withLayoutInfo:

Updates the view with the corresponding layuout info.

- (void)arrangeView:(UIView *)view withLayoutInfo:(TKLayoutInfo *)layoutInfo

Parameters

view

The view that will be arranged.

layoutInfo

The layout info.

Declared In

TKLayout.h

arrangedViews

An array containing the views that will be layed out.

- (NSArray *)arrangedViews

Return Value

An array containing the views that will be layed out.

Declared In

TKLayout.h

insertArrangedView:atIndex:

Inserts arranged view.

- (void)insertArrangedView:(UIView *)view atIndex:(NSUInteger)index

Parameters

view

The view that will be inserted.

index

The index at which the view will be inserted.

Declared In

TKLayout.h

layoutArrangedViews

Lays out the arranged views.

- (void)layoutArrangedViews

Declared In

TKLayout.h

measurePreferredSizeThatFitsSize:

Measures the size of the of the arranged views to fit in the specified size.

- (CGSize)measurePreferredSizeThatFitsSize:(CGSize)size

Parameters

size

The size that the views must fit after arrangement.

Return Value

The optimal size to fit the desired size.

Declared In

TKLayout.h

removeAllArrangedViews

Removes all arranged views.

- (void)removeAllArrangedViews

Declared In

TKLayout.h

removeArrangedView:

Removes arranged view.

- (void)removeArrangedView:(UIView *)view

Parameters

view

The view that will be remove.

Declared In

TKLayout.h