title: Cell height is way too small after using UITableViewAutomaticDimension for static cells
body: <p>After using <code>UITableViewAutomaticDimension</code> for static cells (which are 'right detail cell's, so I can't set any constraint to cell's height)</p>
  
  <p>the cells' heights became way to small. Is there any way to fix this? :(</p>
  
  <p>Thanks in advance!</p>
  
  <p><a href="https://i.stack.imgur.com/0Grkp.png" rel="nofollow noreferrer">What I was expecting(image)</a></p>
  
  <p><a href="https://i.stack.imgur.com/RZP0D.png" rel="nofollow noreferrer">How it shows(image)</a></p>
  
  <p>codes : </p>
  
  <pre><code>override func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -&gt; CGFloat {
      return UITableViewAutomaticDimension
  }
  
  override func tableView(_ tableView: UITableView, estimatedHeightForRowAt indexPath: IndexPath) -&gt; CGFloat {
      return 65
  }
  
  override func viewWillAppear(_ animated: Bool) {
      tableView.estimatedRowHeight = 65
      tableView.rowHeight = UITableViewAutomaticDimension
  }
  </code></pre>
  
  <p><strong>EDIT:</strong> </p>
  
  <p>It seemed like there is no way to extend height without <code>constraint</code>s when using <code>UITableViewAutomaticDimension</code> so I set <code>rowHeight</code> manually :</p>
  
  <pre><code>struct DeviceSize {
      static let iPhoneSE = (width:Float(320.0), height:Float(568.0))
      static let iPhone7 = (width: Float(375.0), height:Float(667.0))
      static let iPhone7P = (width: Float(414.0), height:Float(736.0))
  }
  
  override func tableView(_ tableView: UITableView,
                 heightForRowAt indexPath: IndexPath) -&gt; CGFloat {
      let height = Float(UIScreen.main.bounds.size.height)
      switch height {
      case DeviceSize.iPhoneSE.height:
          return 55
      case DeviceSize.iPhone7.height:
          return 60
      case DeviceSize.iPhone7P.height:
          return 65
      default:
          return 65
      }
  }
  </code></pre>