TKListViewLinearLayout Class Reference
Inherits from | UICollectionViewLayout |
Declared in | TKListViewLinearLayout.h |
Tasks
-
scrollDirection
property -
itemInsertAnimation
property -
itemDeleteAnimation
property -
itemAppearAnimation
property -
animationDuration
property -
itemAlignment
property -
itemSpacing
property -
itemSize
property -
headerReferenceSize
property -
footerReferenceSize
property -
dynamicItemSize
property -
– initHeaderAttributes:atPoint:
-
– initFooterAttributes:atPoint:
-
– layoutSection:atPoint:
-
– initItemAttributes:atPoint:lastInSection:
-
– calculatedItemWidth
Properties
animationDuration
Defines the animation duration.
@property (nonatomic) CGFloat animationDuration
Declared In
TKListViewLinearLayout.h
dynamicItemSize
Determine item size by calling the sizeThatFits method for each cell.
@property (nonatomic) BOOL dynamicItemSize
Declared In
TKListViewLinearLayout.h
footerReferenceSize
The footer reference size.
@property (nonatomic) CGSize footerReferenceSize
Declared In
TKListViewLinearLayout.h
headerReferenceSize
The header reference size.
@property (nonatomic) CGSize headerReferenceSize
Declared In
TKListViewLinearLayout.h
itemAlignment
The desired cell alignment within a column.
@property (nonatomic) TKListViewItemAlignment itemAlignment
Declared In
TKListViewLinearLayout.h
itemAppearAnimation
Defines the animation that will be used when an item appears.
@property (nonatomic) TKListViewItemAnimation itemAppearAnimation
Declared In
TKListViewLinearLayout.h
itemDeleteAnimation
Defines the animation that will be used when removing an item.
@property (nonatomic) TKListViewItemAnimation itemDeleteAnimation
Declared In
TKListViewLinearLayout.h
itemInsertAnimation
Defines the animation that will be used when inserting an item.
@property (nonatomic) TKListViewItemAnimation itemInsertAnimation
Declared In
TKListViewLinearLayout.h
Instance Methods
calculatedItemWidth
Calculates the item width(height when using horizontal scroll direction) based on layout parameters.
- (CGFloat)calculatedItemWidth
Declared In
TKListViewLinearLayout.h
initFooterAttributes:atPoint:
Initializes the group footer layout attributes.
- (CGPoint)initFooterAttributes:(UICollectionViewLayoutAttributes *__nonnull)attributes atPoint:(CGPoint)point
Parameters
- attributes
The attributes to initialize.
- point
The current location.
Declared In
TKListViewLinearLayout.h
initHeaderAttributes:atPoint:
Initializes the group header layout attributes.
- (CGPoint)initHeaderAttributes:(UICollectionViewLayoutAttributes *__nonnull)attributes atPoint:(CGPoint)point
Parameters
- attributes
The attributes to initialize.
- point
The current location.
Declared In
TKListViewLinearLayout.h
initItemAttributes:atPoint:lastInSection:
Initializes a single item layout attributes.
- (CGPoint)initItemAttributes:(UICollectionViewLayoutAttributes *__nonnull)attributes atPoint:(CGPoint)point lastInSection:(BOOL)lastInSection
Parameters
- attributes
The item attributes to initialize.
- point
The current location.
- lastInSection
Indicates whether the item is the last in its section.
Declared In
TKListViewLinearLayout.h