views:

25

answers:

1

Alright, so here's the problem I'm having (it's a weird one.)

I added a new UIViewController for the app I'm building. The first view controller works perfectly, orients correctly, etc. The second one orients horribly.

This is how it looks if you start in landscape and then change orientation to portrait: landscape start portrait end

And then, if you start in portrait and switch to landscape: portrait start landscape end

It's worth noting that the button isn't a problem, it's there as a trigger for some code and doesn't need to stay correctly placed. Also, switching tabs makes the orientation display correctly, but it breaks as soon as you switch again.

I have absolutely no idea why this is happening. The only code I've added to this view controller is an IBAction that doesn't have any bearing (I commented it out to be sure.) Any ideas?

Thanks,
jkap

A: 

Did you use a NIB to build this? If so, did you define the anchor and stretch settings on each UI element?

Travis
Yes to both of these. The NIB is actually modifications off of a duplicate from my working NIB.
jkap