Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ahan.tm

macrumors regular
Original poster
Jun 26, 2011
141
0
Florida
Hi,

I am trying to create a View-Based Application with Xcode 4 and when I run my project in the simulator, the objects(Mostly UIImageView) do not show correctly, they are all distorted and misplaced. I am using Interface Builder and setting the files under the Attributes Tab. Please also note, that the project uses the landscape orientation and PNG files.

Any help would be appreciated!

Thanks
 
Hi,

Thanks for your responses. On an actual device, they do not show up correctly. They show up exactly the same way as in the simulator. Also, in Interface Builder I have set the Orientation under Simulated Metrics to landscape.

Thanks
 
Wirelessly posted (Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3_3 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8J2 Safari/6533.18.5)

Can you also post a screen shot of interface builder and what the simulator shows? (If you did already, I can't see them because I'm on the mobile site.)
 
Here is a picture in the simulator and in Interface Builder-

Simulator: Simulator .png

Interface Builder: IB.png
 
Interesting... what do you springs and struts look like in Interface builder for all the balls?

Maybe try turning on all the struts and turning off all the springs?

Edit: Springs and struts may be accessed by clicking on an object, clicking on the ruler tab on the right side column and looking at the white box below "Origin" and above "Autosizing". Turning on the struts means click on all the things that look like I beams so that they're all solid red. Turning off the springs means click on the double ended arrows so that they're red dashes. Just letting you know incase you don't understand the terms "springs" and "struts".
 
It Works!!!

Thank you so much for your help. I fixed by playing around with the springs and struts!:)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.