title: XCode 7 with iOS 9.3 - Constraints Works in iPhones Simulator But When Running in an iPad Simulator a Margin is Added
body: <p>I'm creating a very simple project, but I can't make the constraints work perfectly both in iPhones and iPad, there's this wierd behavior when I execute the app in an iPad simulator (images below).</p>
  
  <p>I read that there's some differences in the margins between iphones and ipad and even though I tried to find help I couldn't figure it out how to solve this problem.</p>
  
  <p>It's seems like the problem is in the View Margins... I tried to put this code in my appDelegate:</p>
  
  <pre><code>UITableViewCell.appearance().preservesSuperviewLayoutMargins = true
  UITableViewCell.appearance().contentView.preservesSuperviewLayoutMargins = true
  </code></pre>
  
  <p>that I founded in this link
  <a href="https://stackoverflow.com/questions/27420888/uitableviewcell-with-autolayout-left-margin-different-on-iphone-and-ipad">UITableViewCell with autolayout left margin different on iPhone and iPad</a></p>
  
  <p>but doesn't worked!</p>
  
  <p><a href="https://i.stack.imgur.com/YuKqh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YuKqh.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/6M6XK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6M6XK.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/MagFT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MagFT.png" alt="enter image description here"></a></p>
  
  <p>Thanks in advanced for any help.</p>