Hello everyone:
I am having some problems with the orientation on my app. If I have to app on landscape, and I switch to another view, things get off.
The way I have set the orientation is like this:
-(BOOL) shouldAutorotateToInterfaceOrientation

UIInterfac eOrientation)interfaceOrientation {
* * // Return YES for supported orientations
* * if (interfaceOrientation == UIInterfaceOrientationLandscapeLeft || interfaceOrientation == UIInterfaceOrientationLandscapeRight) {
self.view = landscape;
}
else if (interfaceOrientation == UIInterfaceOrientationPortrait|| interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown) {
self.view = potrait;
}
* * return TRUE;
}
Each view has 2 views inside. One for landscape and the other for portrait. So I have 2 IBOutlets for each view so when I rotate, I call each view like*self.view = landscape or*self.view =*portrait.
Now. This is an example of the problem:
By the way, I am running landscape all the time. If I run portrait, I don't have those problems.
This is the main view of the app in landscape:

http://www.flickr.com/photos/6792279...in/photostream
Now when I press settings:
http://www.flickr.com/photos/6792279...in/photostream
It also happens when I select a theme: (Always in Landscape):
http://www.flickr.com/photos/6792279...in/photostream
This is the code when I select a theme to go back:
*CalcViewController_iPad *screen = [[CalcViewController_iPad alloc] initWithNibName:@"CalcViewiPad" bundle:nil];
[self presentModalViewController:screen animated:YES];
[screen release];
Is there any way I can fix this problem?
Thanks!