Autoresize not working in xib

2020-07-14 05:36发布

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.

7条回答
我想做一个坏孩纸
2楼-- · 2020-07-14 06:07

You can get reference from Ray WenderLich example. Very simple explanation of autoLayout with example along with it.It will describe you every line where you are doing mistake.If you have enabled Autolayout then constraints must show in left side while selecting View.

查看更多
登录 后发表回答