title: Resize UITableView to iPhone 5/5s
body: <p>How can I adapt my UITableView height based on iPhone screen size (i.e. adapt to iP5)? On iPhone 4/4s, the UITableView adapts until the bottom of the UIView but on iPhone 5 doesn't. I've autolayout enabled and i already tried to run the next code (unsuccessful):</p>
  
  <pre><code>self.friendsTable.autoresizingMask = UIViewAutoresizingFlexibleBottomMargin | UIViewAutoresizingFlexibleHeight ;
  </code></pre>
  
  <p>Any idea?</p>
  
  <p>On iPhone 4/4s:</p>
  
  <p><img src="https://i.stack.imgur.com/wRQEx.png" alt="iPhone 4/4s"></p>
  
  <p>On iPhone 5/5s:</p>
  
  <p><img src="https://i.stack.imgur.com/BjLmZ.png" alt="iPhone 5/5s"></p>
  
  <p>XIB:
  <img src="https://i.stack.imgur.com/wXDJX.png" alt="enter image description here"></p>