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

Wellington2k

macrumors regular
Original poster
Hello. I've been trying to build a landscape oriented game, but every time I run the app anything I put in the xib file is flipped. Any help would be nice.
Here is an image of my problem.
Screen Shot 2011-10-01 at 9.20.30 AM.png
 
Would I be changing it on the view or the button? I pretty sure it is the view.
I just want to make sure.
Are there specific levels it has to be on for it to work. I've tried a lot and still nothing.
 
Last edited:
Would I be changing it on the view or the button? I pretty sure it is the view.
I just want to make sure.
Are there specific levels it has to be on for it to work. I've tried a lot and still nothing.

Both.


If your parent view is not setup properly it will throw the button off. The outer lines are struts, these hold your views into place. The inner lines are springs this tells your view to grow/shrink.
 
Why isn't this automatic? I worked in Xcode 3 with out all this trouble.
I've noticed that it doesn't matter if in the xib I change the view from portrait to landscape.
The same issue happens.
 
Why isn't this automatic? I worked in Xcode 3 with out all this trouble.
I've noticed that it doesn't matter if in the xib I change the view from portrait to landscape.
The same issue happens.


On your parent view set both springs. On your button only set the bottom strut.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.