1.首页中显示常规的cell注意在获取cell的高度的时候需要特殊处理,因为cell中的tableView的高度不确定
2.在获取高度用第三方UITableView+FDTemplateLayoutCell
return [tableView fd_heightForCellWithIdentifier:@"Identifier" cacheByIndexPath:indexPath configuration:^(HTDetailAboutDetailViewCell *cell) {
}];
动态获取高度
3.对首页cell处理,为了更好地处理cell的高度,在这里不建议使用xib,使用纯代码 + Masonry 布局
cell中的主要代码:
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
if (