cell 上使用自适应高度的webView注意点
1.不能使用cell复用 出现问题:每次cell出现,或者消失,cell被复用,已经加载的webview都需要重新加载,加载成功重新刷新高度 ,在滑动刷新的过程会反复加载形成循环
2.再不使用复用的情况下,已经加载过的添加加载标示,不再重复加载,避免良妃资源,卡顿
3. 适用于cell个数不是太多的需求,
1. 创建cell
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
NSString * identify = [NSString stringWithFormat:@"%ld%ldcell",indexPath.row,indexPath.section];
TasKStauesCell * cell = [tableView dequeueReusableCellWithIdentifier:identify];
if (!cell) {
cell = [[TasKStauesCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identify];
}
[self configureCell1:cell atIndexPath:indexPath withObject:nil];
return cell;
}
2. 回掉刷新高度
- (void)configureCell1:(UITab