title: Height and width on iPhone (/iPad)
body: <p>This is just a test application, There is only a AppDelegate class to create all I did was create a Window based app, set the supported orientations to only the landscape in the info.plist, and then add the following code:</p>
  
  <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {    
  [application setStatusBarOrientation:UIInterfaceOrientationLandscapeLeft];
  
  // Override point for customization after application launch.
  UIAlertView *test = [[UIAlertView alloc] initWithTitle:@"hu" message:@"hui" delegate:nil cancelButtonTitle:@"hi" otherButtonTitles:nil];
  [test show];
  [window makeKeyAndVisible];
      NSLog(@"win %f - %f", window.bounds.size.width, window.bounds.size.height);
  return YES;
  }
  </code></pre>
  
  <p>Without the first line, which sets the status bar orientation, the alert view appears in portrait even though the rest of the interface is in landscape left.</p>
  
  <p>Anyway the Log still gives this:</p>
  
  <pre><code>win 768.000000 - 1024.000000
  </code></pre>
  
  <p>This is the wrong way round (and thus when I add subviews in my real app the frames are not correct)</p>
  
  <p>Apple seems to have really mucked up on the interface rotation, because I've had nothing but problems, I don't remember any of this happening on the iPhone, so please can someone tell me how to fix this.</p>
  
  <p>I'll give 500 reputation (that's all but 10 of my reputation) to the person who can at least explain why this happens and hopefully provide a solution.</p>