title: Adding Constraints to UITableViewCell
body: <p>I am having trouble getting constraints to work on my <code>UITableViewCell</code>. The cell currently has 2 text fields and a button with an image.</p>
  
  <p><strong>iPhone X Storyboard</strong></p>
  
  <p><img src="https://imgur.com/J0bcLW7.jpg" alt="iPhone X"></p>
  
  <p>Currently without constraints the cell content doesn't change position no matter which device I test it on. For instance on an iPad it looks like this</p>
  
  <p><strong>iPad storyboard</strong></p>
  
  <p><img src="https://imgur.com/0mZRSHW.jpg" alt="iPad "></p>
  
  <p>When I add constraints it looks like it is going to work, but then when I run the app the content is all screwed up.</p>
  
  <p>Here are screenshots of what it looks like with constraints, and what constraints I am using.</p>
  
  <p><strong>iPhone X Simulator with constraints</strong></p>
  
  <p><img src="https://imgur.com/lCxrMyP.jpg" alt="iPhone X Simulator with constraints">
  <img src="https://imgur.com/RSQYPel.jpg" alt="iPhone X Simulator with constraints"></p>
  
  <p>Can anyone tell me which specific constraints I need to make it look like this on all devices?</p>
  
  <p><strong>iPhone X Simulator without constraints</strong></p>
  
  <p><img src="https://imgur.com/OL5wiAd.jpg" alt="iPhone X Simulator without constraints "></p>
  
  <p>I haven't had issues with constraints with the rest of the app, but for some reason Autolayout constraints in cells are evading my understanding.</p>
  
  <p>Thank you!</p>
  
  <p>UPDATE</p>
  
  <p>I was able to fix the issue with the answers from this question <a href="https://stackoverflow.com/questions/43319921/autolayout-is-ignored-in-custom-uitableviewcell">Autolayout is ignored in Custom UITableViewCell</a></p>
  
  <p>After that the constraints @leedex suggested worked wonderfully. </p>