Landscape app sometimes thinks portrait

Member
Posts: 50
Joined: 2008.06
Post: #1
I have an app that I have set the orientation in the plist to be landscape. I've also set the shouldAutorotateToInterfaceOrientation only to allow landscape.
When the app starts, the view's frame is landscape. The simulator and device both show landscape.
However, after the initial call to my view's initWithFrame (where it is landscape), any other time I get the view's frame it's portrait.

Any ideas? I've tried all sorts of things without luck.
Quote this message in a reply
Member
Posts: 50
Joined: 2008.06
Post: #2
Uhhhhhgggg. I finally got it. view.bounds is what I should be using to lay out the view since that's what's being used for the drawRect. Using Bounds works great.
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Attempting to add landscape IB buttons to an openGL View Madrayken 1 3,626 Oct 17, 2010 07:03 AM
Last Post: iamflimflam1
  Chipmunk moonbuggy dynamic landscape wonza 5 3,488 Nov 6, 2009 01:08 AM
Last Post: wonza
  iPhone opengl 2d sprites landscape mode mnorton 6 5,393 Sep 9, 2009 08:27 PM
Last Post: mnorton
  portrait opengl view while using UITabbar foobar8675 0 2,205 Mar 20, 2009 02:17 PM
Last Post: foobar8675
  How can I add autorotate (landscape, portrait) to an OpenGL ES app? riruilo 6 8,839 Feb 12, 2009 07:51 AM
Last Post: AnotherJake