Hysen Labs
Open-source project
forkingdog/UITableView-FDTemplateLayoutCell avatar
forkingdog

UITableView-FDTemplateLayoutCell

GitHub describes it as Template auto layout cell for automatically UITableViewCell height calculating. The repository metadata lists Objective-C as its primary language. The metadata lists the MIT license. This article stays within the project description and details documented in the GitHub repository README.

9,866 stars1,987 forksObjective-CMIT
01
DEEP OPEN-SOURCE ANALYSIS

forkingdog/UITableView-FDTemplateLayoutCell: Height Caching API

GitHub describes it as Template auto layout cell for automatically UITableViewCell height calculating. The repository metadata lists Objective-C as its primary language. The metadata lists the MIT license. This article stays within the project description and details documented in the GitHub repository README.

02
DEEP OPEN-SOURCE ANALYSIS

Repository scope

GitHub describes it as Template auto layout cell for automatically UITableViewCell height calculating. The repository metadata lists Objective-C as its primary language. The metadata lists the MIT license. The README describes the project this way: Since iOS8, -tableView:heightForRowAtIndexPath: will be called more times than we expect, we can feel these extra calculations when scrolling. So we provide another API with cache by index path:

03
DEEP OPEN-SOURCE ANALYSIS

Frame layout mode

The README section "Frame layout mode" states: 1. Auto layout mode using "-systemLayoutSizeFittingSize:" 2. Frame layout mode using "-sizeThatFits:"

04
DEEP OPEN-SOURCE ANALYSIS

Frame layout mode

The README section "Frame layout mode" states: Generally, no need to care about modes, it will automatically choose a proper mode by whether you have set auto layout constrants on cell's content view. If you want to enforce frame layout mode, enable this property in your cell's configuration block:

05
DEEP OPEN-SOURCE ANALYSIS

Frame layout mode

The README section "Frame layout mode" states: And if you're using frame layout mode, you must override -sizeThatFits: in your customized cell and return content view's height (separator excluded)

06
DEEP OPEN-SOURCE ANALYSIS

Editorial conclusion

The repository README is the source for this review. It does not replace a local installation or an independent test.

07
DEEP OPEN-SOURCE ANALYSIS

Official sources

08
Community notes

Community notes