title: uitableview autolayout custom cell causing extra height
body: <p>uitableview autolayout custom cell causing extra height. Unable to detect where causing the issue while in different project working fine. <a href="https://i.stack.imgur.com/seTZa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/seTZa.png" alt="enter image description here"></a></p>
  
  <pre><code>- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
  
      [_stubCell layoutSubviews];
  
      [self configureCell:_stubCell atIndexPath:indexPath];
  
      CGFloat height = [_stubCell.contentView systemLayoutSizeFittingSize:UILayoutFittingCompressedSize].height;
      return height;
  }
  
  
  - (CGFloat)tableView:(UITableView *)tableView estimatedHeightForRowAtIndexPath:(NSIndexPath *)indexPath {
      return 40.f;
  }
  
  - (void)configureCell:(CCACustomCell *)cell atIndexPath:(NSIndexPath *)indexPath {
      cell.customLabel.text = [_tableData objectAtIndex:indexPath.row];
      cell.customLabel.font = [UIFont fontWithName:@"Avenir-Light" size:16.0];
      cell.customLabel.textColor = UIColorFromRGB(0x32383B);
  }
  
  - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
      CCACustomCell *cell = [tableView dequeueReusableCellWithIdentifier:@"Cell" forIndexPath:indexPath];
      [self configureCell:cell atIndexPath:indexPath];
      return cell;
  }
  </code></pre>