-(CGFloat)tableView:(UITableView*)tableView heightForRowAtIndexPath:(NSIndexPath*)indexPath{
//一句话搞定cell高度自适应
return [self cellHeightForIndexPath:indexPath cellContentViewWidth:WIDTH tableView:tableView];
}
-(CGFloat)tableView:(UITableView*)tableView heightForRowAtIndexPath:(NSIndexPath*)indexPath{
//一句话搞定cell高度自适应
return [self cellHeightForIndexPath:indexPath cellContentViewWidth:WIDTH tableView:tableView];
}
本文标题:ios 表格cell高度自适应
本文链接:https://www.haomeiwen.com/subject/ldjjfqtx.html
网友评论