I am trying to layout my xib so that layout fits in both iphone 5 (4 inches retina) and 3.5 devices.
Because I have to support IOS-5 I cannot use autolayout. I have to use springs and Struts.
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.
Can someone give a hint how to actually make an xib compatible to both the devices?
For more clarity I am adding screenshots:
When I set size 3.5 in attribute inspector:
![When I set size in attribute inspector to 3.5](https://i.stack.imgur.com/RusNY.png)
it looks in iphone-5. There is a space below the buttons:
![And this is how it looks in simulator for 3.5 inch device](https://i.stack.imgur.com/UXwqx.png)
If I set size 4 inch in interface builder. You can see that bottom buttons are not visible in iphone-4.
![If I set size 3.5 inch in interface builder](https://i.stack.imgur.com/m2TO7.png)
So you will ask what are the settings I am using. Here are they:
![enter image description here](https://i.stack.imgur.com/cTZ8A.png)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…