title: Orientation Landscape -> Portrait isn't working
body: <p>I have another orientation problem. But this one is very tricky.
  My RootViewController is a normal NavigationController.</p>
  
  <pre><code>self.window.rootViewController = _naviController;
  </code></pre>
  
  <p>which has another ViewController inside, lets call it VC1.
  VC1 has some buttons and labels. Its like an overview with folders.</p>
  
  <p>If I press a button I come to the next ViewController with 3 ViewController (Page) and another bunch of buttons (like inside a folder looking at the pictures/thumbnails inside):</p>
  
  <pre><code>Archiv *archiv = [[Archiv alloc] init];
  [self.navigationController pushViewController:archiv animated:YES];
  [archiv release];
  </code></pre>
  
  <p>in loadView:</p>
  
  <pre><code>firstPage = [[Page alloc] initViewWithFrame:CGRectMake(0, 0, 768, 960)];
  [firstPage setRootViewController:self];
  secondPage = [[Page alloc] initViewWithFrame:CGRectMake(0, -960, 768, 960)];
  [secondPage setRootViewController:self];
  thirdPage = [[Page alloc] initViewWithFrame:CGRectMake(0, 960, 768, 960)];
  [thirdPage setRootViewController:self];
  </code></pre>
  
  <p>If I now click again on a button the active Page push my third ViewController (image with resizing, dragging...):</p>
  
  <pre><code>Picture *pic = [[Picture alloc] initWithPicURLString:urlString];
  [rootViewController.navigationController pushViewController:pic animated:YES];
  [pic release];
  </code></pre>
  
  <p>With the BackButton of the NavigationController I can always come back to the previous view.</p>
  
  <p>Some more informations: </p>
  
  <ul>
  <li>Every ViewController supports all orientations</li>
  <li>Every ViewController implements <code>- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation</code> with <code>return YES;</code></li>
  <li>Every ViewControler calls the <code>[super init]</code> in their init-methode</li>
  <li>I already read <a href="http://developer.apple.com/library/ios/#qa/qa1688/_index.html" rel="nofollow">Apple's Q&amp;A: Why won't my UIViewController rotate with the device</a></li>
  </ul>
  
  <p>Now the tricky problem:</p>
  
  <p>If I switch from 2nd VC to the 3rd VC, change the orientation there from <strong>portrait to landscape</strong> and press the BackButton everything is <strong>working</strong> (<code>shouldAutorotateToInterfaceOrientation</code> is calling, frame size and origins changing ...).
  <strong>BUT</strong> if I do it the other way around, I am in <strong>landscape mode</strong>, switch from 2nd VC to 3rd VC, rotate <strong>to portrait</strong> and come back to 2nd VC with BackButton, the status- and controllerBar are at the top but the <code>shouldAutorotateToInterfaceOrientation</code> <strong>wasn't called</strong>. </p>
  
  <p>Please help me. $h@rky</p>