静态UITableViewCell自适应高度
self.tableView.estimatedRowHeight = UITableViewAutomaticDimension;
-(CGFloat)tableView:(UITableView*)tableView heightForRowAtIndexPath:(NSIndexPath*)indexPath{
if(indexPath.row==3) {
//在需要自适应高度的cell处 设置
return UITableViewAutomaticDimension;
}
}
网友评论