xib cell高度自适应问题

-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath  
{  
    if (indexPath.row == 0) {  
        return 60;  
    }  
      
    self.articleTableView.rowHeight = UITableViewAutomaticDimension;  
    self.articleTableView.estimatedRowHeight = 240;  
    return self.articleTableView.rowHeight;  
  
}

你可能感兴趣的:(xib cell高度自适应问题)