动态的计算cell高度的
以下举例:
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
//打算比方
NSArray *list = _subDictionary[key];//数据
CellFrame *cellFrame = [[CellFrame alloc] init];
cellFrame.list = list;//传入数据,在list的set方法中动态的计算cell的高度
return cellFrame.cellHeight;//返回高度
}