TKLayout Protocol Reference
Conforms to | NSObject |
Declared in | TKLayout.h |
Tasks
-
frame
property required method -
orientation
property required method -
– addArrangedView:
required method -
– insertArrangedView:atIndex:
required method -
– arrangeView:withLayoutInfo:
required method -
– removeArrangedView:
required method -
– removeAllArrangedViews
required method -
– arrangedViews
required method -
– layoutArrangedViews
required method -
– measurePreferredSizeThatFitsSize:
required method
Properties
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
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