I am using xcode 4.5 with ios 6 in mountain lion.Whenever I add any objects like UIview,UIImageview etc in interface builder,object's height or width or the order i have added is changed in simulator.I tried freedom Metrics also. How can I bring the same width and height I see in interface builder to simulator?any help please?
Asked
Active
Viewed 308 times
0
-
1I assume, you've set "autosizing" to "none", didn't you? – Matthias Nov 22 '12 at 21:16
-
I am running into the same exact problem and provided more detailed information [here](http://stackoverflow.com/questions/13724173/incorrect-uiview-bounds-drawing-in-the-simulator) – RobertJoseph Dec 05 '12 at 13:25
2 Answers
1
Click the "Apply Retina 4 Form Factor" button in the display layout. You have this set for Retina 4 so the screen is resizing for 3.5 when running in the simulator. You can verify this by running the iPhone5 simulator (Retina 4 inch).

Mark McCorkle
- 9,349
- 2
- 32
- 42
0
Matthias is probably right, in the interface builder window on the rightmost panel there will be autosizing and resizing options. Play with them and remove any vertical resizing; it should fix your problem.

Yunus Nedim Mehel
- 12,089
- 4
- 50
- 56