ADKCellDynamicSizeCalculator Class Reference

Inherits from NSObject
Declared in ADKCellDynamicSizeCalculator.h
ADKCellDynamicSizeCalculator.m

+ sharedInstance

Geting a shared instance of ADKCellDynamicSizeCalculator.

+ (instancetype)sharedInstance

Return Value

Instance of ADKCellDynamicSizeCalculator.

Declared In

ADKCellDynamicSizeCalculator.h

– sizeForDynamicHeightCellInstance:preferredSize:

This is a method for cell dynamic height calculation.

- (CGSize)sizeForDynamicHeightCellInstance:(id)cellInstance preferredSize:(CGSize)preferredSize

Parameters

cellInstance

input the class instance, should be a instance of UICollectionViewCell or UITableViewCell.

preferredSize

input the preferred cell size that it will be a minimal size when cell complete size calculation and cell size is not big enough.

Return Value

CGSize of the calculated result from cell instance.

Declared In

ADKCellDynamicSizeCalculator.h

– sizeForDynamicWidthCellInstance:preferredSize:

This is a method for cell dynamic width calculation.

- (CGSize)sizeForDynamicWidthCellInstance:(id)cellInstance preferredSize:(CGSize)preferredSize

Parameters

cellInstance

input the class instance, should be a instance of UICollectionViewCell or UITableViewCell.

preferredSize

input the preferred cell size that it will be a minimal size when cell complete size calculation and cell size is not big enough.

Return Value

CGSize of the calculated result from cell instance.

Declared In

ADKCellDynamicSizeCalculator.h