title: How to make xib compatible with both iphone 5 and iphone 4 devices
body: <p>I am trying to layout my xib so that layout fits in both iphone 5 (4 inches retina) and 3.5 devices. </p>
  
  <p>Because I have to support IOS-5 I cannot use autolayout. I have to use springs and Struts.</p>
  
  <p>I tried everything in interface-builder. But either my view is going beyond the bottom of iphone-3.5-inch or not filling completely the iphone-4-inch-retina. </p>
  
  <p>Can someone give a hint how to actually make an xib compatible to both the devices?</p>
  
  <p>For more clarity I am adding screenshots:</p>
  
  <p>When I set size 3.5 in attribute inspector:
  <img src="https://i.stack.imgur.com/RusNY.png" alt="When I set size in attribute inspector to 3.5"></p>
  
  <p>it looks in iphone-5. There is a space below the buttons:
  <img src="https://i.stack.imgur.com/UXwqx.png" alt="And this is how it looks in simulator for 3.5 inch device"></p>
  
  <p>If I set size 4 inch in interface builder. You can see that bottom buttons are not visible in iphone-4.
  <img src="https://i.stack.imgur.com/m2TO7.png" alt="If I set size 3.5 inch in interface builder"></p>
  
  <p>So you will ask what are the settings I am using. Here are they:</p>
  
  <p><img src="https://i.stack.imgur.com/qHQR9.png" alt="enter image description here">
  <img src="https://i.stack.imgur.com/5yJ37.png" alt="enter image description here">
  <img src="https://i.stack.imgur.com/cTZ8A.png" alt="enter image description here"></p>