title: Self-Sizing Table View Cell in Xcode 9
body: <p>I have a <code>UITableViewController</code> where the cell's self sized correctly using Xcode 8 and Swift 3.  Now that I'm using <strong>Xcode 9 and Swift 4, they aren't expanding</strong> and are just using the default height of 44.</p>
  
  <p><em>(I have about a sentence or two in each <code>UITableViewCell</code>)</em></p>
  
  <p>I was using this before:</p>
  
  <pre><code>// MARK: - Table view delegate
  
  override func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -&gt; CGFloat {
      return UITableViewAutomaticDimension
  }
  
  override func tableView(_ tableView: UITableView, estimatedHeightForRowAt indexPath: IndexPath) -&gt; CGFloat {
      return UITableViewAutomaticDimension
  }
  </code></pre>
  
  <p>... but was able to comment it out because per <a href="https://developer.apple.com/videos/play/wwdc2017/204/" rel="noreferrer" title="Updating Your App for iOS 11">Updating Your App for iOS 11</a> said that the default would be self-sizing now:</p>
  
  <p><a href="https://i.stack.imgur.com/wFmjG.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/wFmjG.jpg" alt="enter image description here"></a></p>
  
  <p>I've tried playing around with changing the deployment target to iOS 11, playing around in Storyboard (but I'm using a Table View Cell style Basic so there is not much AutoLayout to be done), and I can't figure out what is going on.</p>
  
  <p>I have the <code>UILabel</code> title set to 0 Lines, and have Line Break Word Wrap, but still not getting anywhere close to getting the cell to expand based on the text content inside of it in Xcode 9.  Any ideas?</p>
  
  <p>Thanks!</p>
  
  <p>Edit:</p>
  
  <p>Here's the options (that I don't have) for pinning since it is a Basic cell:</p>
  
  <p><a href="https://i.stack.imgur.com/Ln7Zf.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Ln7Zf.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/9cFPR.png" rel="noreferrer"><img src="https://i.stack.imgur.com/9cFPR.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/abXqH.png" rel="noreferrer"><img src="https://i.stack.imgur.com/abXqH.png" alt="enter image description here"></a></p>