forkingdog / forkingdog/UITableView-FDTemplateLayoutCell

cell label高度计算过高

Open
#384 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Objective-C
Stars
9.9k
Forks
2k
PR merge metrics
No merged PRs in 30d

Description

return [tableView fd_heightForCellWithIdentifier:@"TheCell" configuration:^(id cell) {
TheCell *payCell = (TheCell *)cell;
payCell.saveMoney.text = @"节省三百块现大洋,又节省了六百块American dollars,it's perfect,so, line feed now";
}];
cellForRowAtIndexPath 里
cell.saveMoney.text = @"节省三百块现大洋,又节省了六百块American dollars,it's perfect,so, line feed now";

通过分层看,cell中的label高度远超过使用 return UITableViewAutomaticDimension 计算的高度。实际占用的高度也是后者正确。 xib画的cell。
default
default

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.