Autoresize not working in xib

Krunal picture Krunal · Apr 5, 2013 · Viewed 10.4k times · Source

I made simple design in .xib, deployment target for my app is iOS 5 My view doesn't resizes, when i run my app in simulator or device.

here is snapshot of my .xib file..

When i try to run my app in simulator, it runs properly in the simulator of 4", but it does not resizes, when i run my app in the simulator of 3.5". Autoresize subview property is checked.

Here is snapshot of my Simulaotrs, first screenshot is for 3.5" and second for 4"..

Thanks in advance.

Answer

Alexander Merchi picture Alexander Merchi · Apr 9, 2013

could you please use next setting in your .xib file (416 = 480 - 20 (width for status bar) - 44(width for nav bar) enter image description here

416 = 480 - 20 (width for status bar) - 44(width for nav bar)

if you want icon in the top on iPhone 5 use next setting for icons: enter image description here enter image description here

if you want icon in the bottom on iPhone 5 use next setting for icons: enter image description here enter image description here