OpenGL and Landscape.

Discussion in 'iOS Programming' started by SqueegyX, Sep 16, 2008.

  1. SqueegyX macrumors regular

    Mar 24, 2008
    I'm not sure why this is so difficult, but check out this screenshot:


    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?
  2. SqueegyX thread starter macrumors regular

    Mar 24, 2008
    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.
  3. Nall macrumors regular

    Aug 15, 2003
    Seems like all this may do, honestly, is change the statusbar.

Share This Page