forkingdog / forkingdog/UITableView-FDTemplateLayoutCell

iOS6.0无法计算准确的高度。

Open
#168 0 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

例子:
CGFloat height = [tableView fd_heightForCellWithIdentifier:@"mineNotificationsCellIdentifier" configuration:^(LuckyBoySaySayCell *cell) {
cell.notification = [self.paginator.results objectAtIndex:indexPath.row - 3];;
}];
return height;

得到的高度在iOS6,是固定的。
我使用的是autolayout
label的行数为0

最新解决办法:
设定label的preferredMaxLayoutWidth!!
作者不是说解决了这个问题的吗?在iOS6下。为何还会这样呢??

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.