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

SqueegyX

macrumors regular
Original poster
Mar 24, 2008
108
1
I'm not sure why this is so difficult, but check out this screenshot:

Untitled-1.png


Basically, I have edited Info.plist to start the app in Landscape mode. The first odd thing I noticed was that this didn't affect my OpenGL view (meaning the Y axis still went from home button to speaker). This, while not ideal, can be worked around with how you render stuff. No bid deal.

The real problem is that controls on the view refuse to convert themselves to landscape. As you can clearly see, the status bar is in Landscape proper, and yet the UIButton has not been rotated to match at all.

I have a view controller assigned to this view, but it doesn't seem to call the shouldAutoRotate method on it ever. Not sure why this is so difficult. I mean the status bar and the view under not matching orientations has to be a bug right?
 

SqueegyX

macrumors regular
Original poster
Mar 24, 2008
108
1
I managed to solve this by creating a new app using the "Window" template, and importing all my code from my old project. I'm not sure what's different, but its working great now.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.