美文网首页
在cell中计算出高度之后在tableview代理里面获取高度

在cell中计算出高度之后在tableview代理里面获取高度

作者: 一年影绰 | 来源:发表于2017-08-15 10:23 被阅读15次

经常忘记所以记下

-(CGFloat )tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    ModelCell *cell =(ModelCell *)[self tableView:tableView cellForRowAtIndexPath:indexPath];
    return cell.frame.size.height;
}

相关文章

网友评论

      本文标题:在cell中计算出高度之后在tableview代理里面获取高度

      本文链接:https://www.haomeiwen.com/subject/dhsmrxtx.html