如何动态改变 tableview的高度

2025-05-14 21:47:47
推荐回答(1个)
回答1:

动态的计算cell高度的 以下举例: - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{ //打算比方 NSArray *list = _subDictionary[key];//数据 CellFrame *cellFrame = [[CellFrame alloc] init.