Hi,
I have desgnided an app with two views: the first contains a simple table with some rows and the second display the string selected on table
I use this code to switch to second view (or come back to the first) or code like this
Code:
iBanner2ViewController *firstView = [[iBanner2ViewController alloc] initWithNibName:@"iBanner2ViewController" bundle:[NSBundle mainBundle]];
iBannerVisualizer *secondView = [[iBannerVisualizer alloc] initWithNibName:@"iBannerVisualizer" bundle:[NSBundle mainBundle]];
[self.view addSubview:firstView.view];
[secondView release];
now in both view controllers, I uncomments the piece of code to enable the autorotation, but when I simulate the app and try to"rotate", there is a strange beaviour:
the second view appear only half part and the other art is busied by the part of first view (the list)
I added a screenshot,I hope to be clear explaining my troubles
Good bye