iPhone - adding views and landscape orientation
<p>I got a problem with Cocoa touch and landscape orientation.</p>

<p>I instantiate my view from a .xib; i added in my view controller</p>

<pre><code>- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    return interfaceOrientation == UIInterfaceOrientationLandscapeRight;
}
</code></pre>

<p>to only allow landscape orientation.</p>

<p>This works find for the first view i add.. if I add a second view however it is rotated again like the landscape view is shown in portrait mode (rotated 90 degree counterclockwise).</p>

<p>I really don't know what is going on and can't find a workaround. I even tried to get behind what is happening just adding my view twice:</p>

<pre><code>MainMenuViewController* controller = [[MainMenuViewController alloc] initWithNibName:@"MainMenu" bundle:nil];
[window addSubview: controller.view];

MainMenuViewController* controller2 = [[MainMenuViewController alloc] initWithNibName:@"MainMenu" bundle:nil];
[window addSubview: controller2.view];


[window makeKeyAndVisible];
</code></pre>

<p>The view of controller is displayed correctly, while the view of controller2 is rotated by 90 degrees. Does anyone have an idea how this can happen? Thanks for your help.</p>
