PDA

View Full Version : OpenGL and Landscape.




SqueegyX
Sep 17, 2008, 12:47 AM
I'm not sure why this is so difficult, but check out this screenshot:

http://beautifulpixel.com/assets/2008/9/17/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
Sep 17, 2008, 12:26 PM
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.

Nall
Sep 17, 2008, 12:34 PM
Basically, I have edited Info.plist to start the app in Landscape mode.
Seems like all this may do, honestly, is change the statusbar.