Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Autoresize not working in xib

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.

like image 238
Krunal Avatar asked Apr 05 '13 11:04

Krunal


3 Answers

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 hereenter image description here

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

like image 146
Alexander Merchi Avatar answered Sep 18 '22 20:09

Alexander Merchi


if you want to autoresize and autoorder the icons referencing to the upper view, try to play either with the layout tab
layout

or create for each layout own .xib ;)

like image 28
geo Avatar answered Sep 19 '22 20:09

geo


Check whether you have unchecked the Autolayout option in .xib file..enter image description here

like image 36
Venk Avatar answered Sep 16 '22 20:09

Venk