my iPhone App includes 2 view-orientations: portrait and landscape. It starts in portrait, but includes 2 view controllers, which should rotate automatically to landscape.
Thats my code in the landscape-views:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft);
}
But when the view loads in the iPhone-simulator, the virtual device stays in portrait, and the content of the landscape-view isn't displayed correctly. I have to turn the device manually(simulator).
Can you give me a solution for my problem? Or is it only a problem with the simulator?